From 8aebf2b291e9a5e033deafd972c09d1112b4ebf6 Mon Sep 17 00:00:00 2001 From: Matthew Ray Date: Fri, 22 May 2020 22:07:17 -0400 Subject: [PATCH] go bindings for username lookup by UID --- src/class/Util.ts | 2 +- src/go/getUserByUid/getUserByUid.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) }