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

urlpath.HasExtension   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
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