Completed
Push — master ( 730c2a...2dfb88 )
by Stanislav
01:09
created

planfix/utils.go   A

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 4
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A planfix.stringInSlice 0 7 4
1
package planfix
2
3
func stringInSlice(slice []string, search string) bool {
4
	for _, elem := range slice {
5
		if search == elem {
6
			return true
7
		}
8
	}
9
	return false
10
}
11