Explorar o código

fmt: Ineffectual assignment

jamesread %!s(int64=3) %!d(string=hai) anos
pai
achega
49cb2e5c0a
Modificáronse 1 ficheiros con 1 adicións e 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 {