Unshadow variable, fix test.
authorOllivier Robert <roberto@keltia.net>
Mon, 10 Apr 2017 20:45:57 +0200
changeset 49 b48dafc1fd4f
parent 48 2124c16bd397
child 50 80a09cf62225
Unshadow variable, fix test.
config.go
--- a/config.go	Mon Apr 10 20:02:12 2017 +0200
+++ b/config.go	Mon Apr 10 20:45:57 2017 +0200
@@ -73,7 +73,7 @@
 	log.Printf("instance is %s", file)
 
 	// Check if there is any config file
-	if _, err := os.Stat(file); err == nil {
+	if _, err = os.Stat(file); err == nil {
 		// Read it
 		buf, err := ioutil.ReadFile(file)
 		if err != nil {