소스 검색

fmt: Ineffectual assignment

jamesread 3 년 전
부모
커밋
49cb2e5c0a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 {