Skip to content

Commit b884f29

Browse files
committed
linter: use !strings.Contains instead of Index(..)!=-1
1 parent 484e95d commit b884f29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

properties.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func (m *Map) Remove(key string) {
309309
func (m *Map) FirstLevelOf() map[string]*Map {
310310
newMap := make(map[string]*Map)
311311
for _, key := range m.o {
312-
if strings.Index(key, ".") == -1 {
312+
if !strings.Contains(key, ".") {
313313
continue
314314
}
315315
keyParts := strings.SplitN(key, ".", 2)

0 commit comments

Comments
 (0)