diff options
Diffstat (limited to 'src/nshd')
-rw-r--r-- | src/nshd/hackers_git/hackers_parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nshd/hackers_git/hackers_parse.go b/src/nshd/hackers_git/hackers_parse.go index 47f10da..14140da 100644 --- a/src/nshd/hackers_git/hackers_parse.go +++ b/src/nshd/hackers_git/hackers_parse.go @@ -14,7 +14,7 @@ import ( func filename2uid(filename string) int32 { basename := path.Base(filename) parts := strings.SplitN(basename, ".", 2) - if len(parts) != 2 || parts[1] != ".yml" { + if len(parts) != 2 || parts[1] != "yml" { return -1 } uid, err := strconv.ParseInt(parts[0], 10, 32) |