Explorar el Código

fmt: Ineffectual assignment

jamesread hace 3 años
padre
commit
49cb2e5c0a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {