Ver código fonte

fmt: Ineffectual assignment

jamesread 3 anos atrás
pai
commit
49cb2e5c0a
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      internal/updatecheck/updateCheck.go

+ 1 - 1
internal/updatecheck/updateCheck.go

@@ -30,7 +30,7 @@ var AvailableVersion = "none"
 var CurrentVersion = "?"
 
 func installationID(filename string) string {
-	content := "unset"
+	var content string
 	contentBytes, err := ioutil.ReadFile(filename)
 
 	if err != nil {