about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-03-23 02:04:33 -0400
committerBen Morrison <ben@gbmor.dev>2019-03-23 02:04:33 -0400
commit79a0f002b14a493304e30340f20f714f91901edc (patch)
tree65edb62e0ec96d332e48f40722e7370770dc4854
parent38c56e0d5c70c0c1776b1c19b4983451cab4359d (diff)
downloadgoofbot-79a0f002b14a493304e30340f20f714f91901edc.tar.gz
main.go:52 simplified if statement
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 94f9540..1262d57 100644
--- a/main.go
+++ b/main.go
@@ -49,7 +49,7 @@ func main() {
 	jsonformatlong := flag.Bool("json", false, "Same as -j")
 
 	flag.Parse()
-	if *jsonformat == true || *jsonformatlong == true {
+	if *jsonformat || *jsonformatlong {
 		fmt.Println(`Here is the format for the JSON config file:
             {
                 "owner": "YourNickHere",