diff --git a/src/class/Util.ts b/src/class/Util.ts index cff693d..5f67163 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -74,7 +74,7 @@ export default class Util { returnArray.push(Number(file)); } } - if (returnArray.length > 1) return undefined; + if (returnArray.length < 1) return undefined; return returnArray; } diff --git a/src/go/getUserByUid/getUserByUid.go b/src/go/getUserByUid/getUserByUid.go index 1a64881..8d3b22d 100644 --- a/src/go/getUserByUid/getUserByUid.go +++ b/src/go/getUserByUid/getUserByUid.go @@ -7,7 +7,7 @@ import ( ) func main() { - if len(os.Args) > 1 { + if len(os.Args) < 1 { fmt.Println("-1") os.Exit(0) }