about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenny Morrison <benmorrison@ttm.sh>2019-03-18 20:20:49 -0400
committerBenny Morrison <benmorrison@ttm.sh>2019-03-18 20:20:49 -0400
commit11d1bf96f506bc895797dbaf0ed6c13b28518667 (patch)
tree78e744a1a0e3464f23ec587f1f6677cb4924262e
parent6e88345ae8796fedaa8c9410b24f371c62d37fc4 (diff)
downloadgoofbot-11d1bf96f506bc895797dbaf0ed6c13b28518667.tar.gz
updated comments
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go
index 5e06226..e7adaab 100644
--- a/main.go
+++ b/main.go
@@ -63,10 +63,14 @@ func main() {
             }`)
 		os.Exit(0)
 	}
-	//read the config file into a byte array
+
+	// if the extended switch isn't the default value
+	// and if the extended switch isn't empty
 	if *jsonlocationlong != "config.json" && *jsonlocationlong != "" {
 		*jsonlocation = *jsonlocationlong
 	}
+
+	//read the config file into a byte array
 	jsonconf, err := ioutil.ReadFile(*jsonlocation)
 	checkerr(err)