Passed
Push — master ( 23e371...7b0ca1 )
by Stefano
02:15
created

pkg/common/urlpath/pathutil.go   A

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A urlpath.HasExtension 0 2 1
1
package urlpath
2
3
import (
4
	"path"
5
)
6
7
func HasExtension(p string) bool {
0 ignored issues
show
introduced by
exported function HasExtension should have comment or be unexported
Loading history...
8
	return len(path.Ext(p)) > 0
9
}
10