aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan DeMasi <jon.demasi@colorado.edu>2019-06-05 13:34:26 -0600
committerJonathan DeMasi <jon.demasi@colorado.edu>2019-06-05 13:34:26 -0600
commit77c6c6ed028e45e79ab9f9446b97c9449f021fa5 (patch)
tree21d79c103031428f04f7b8974113c53e673d3a37
parent23e48f92d32e89b69ffcaf193ee4eef79e4880f0 (diff)
downloadgh_authkey_checker-77c6c6ed028e45e79ab9f9446b97c9449f021fa5.tar
gh_authkey_checker-77c6c6ed028e45e79ab9f9446b97c9449f021fa5.tar.gz
gh_authkey_checker-77c6c6ed028e45e79ab9f9446b97c9449f021fa5.tar.bz2
gh_authkey_checker-77c6c6ed028e45e79ab9f9446b97c9449f021fa5.tar.lz
gh_authkey_checker-77c6c6ed028e45e79ab9f9446b97c9449f021fa5.tar.xz
gh_authkey_checker-77c6c6ed028e45e79ab9f9446b97c9449f021fa5.tar.zst
gh_authkey_checker-77c6c6ed028e45e79ab9f9446b97c9449f021fa5.zip
the go way
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index 81a032e..54cc497 100644
--- a/main.go
+++ b/main.go
@@ -18,11 +18,11 @@ func parseArgs() string {
// We have one arg possible comma separated
if len(os.Args) == 2 {
- return (os.Args[1])
+ return os.Args[1]
} else {
log.Fatalln("You have provided too many arguments")
}
- return ("")
+ return ""
}
func fetchKeys(username string) string {
@@ -42,9 +42,9 @@ func fetchKeys(username string) string {
log.Fatal(err)
}
bodyString := string(bodyBytes)
- return (bodyString)
+ return bodyString
}
- return ("")
+ return ""
}
// Need to fix this to not be an infinite loop