Skip to content

Commit e4b1534

Browse files
committed
Clean ineffassign
1 parent 206a243 commit e4b1534

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

helpers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func ByteFormat(inputNum float64, precision int) string {
6969
unit = " PB" // petabyte
7070
} else if inputNum >= 1000000000000 {
7171
returnVal = RoundUp((inputNum / 1099511627776), precision)
72-
unit = " TB" // terrabyte
72+
unit = " TB" // terabyte
7373
} else if inputNum >= 1000000000 {
7474
returnVal = RoundUp((inputNum / 1073741824), precision)
7575
unit = " GB" // gigabyte
@@ -178,7 +178,7 @@ func generateInfo(config Config, title xterm256.Color, info xterm256.Color, user
178178

179179
s = append(s, xterm256.Sprint(title, "Proccesses Running: ")+xterm256.Sprint(info, int64(len(pids))))
180180
case "wversion":
181-
k, err := registry.OpenKey(registry.LOCAL_MACHINE, `SOFTWARE\Microsoft\Windows NT\CurrentVersion`, registry.QUERY_VALUE)
181+
k, _ := registry.OpenKey(registry.LOCAL_MACHINE, `SOFTWARE\Microsoft\Windows NT\CurrentVersion`, registry.QUERY_VALUE)
182182

183183
pn, _, err := k.GetStringValue("ProductName")
184184
if err != nil {

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func main() {
8585
fmt.Println("Couldn't check for upate. Are you connected to the internet?")
8686
}
8787
defer resp.Body.Close()
88-
body, err := ioutil.ReadAll(resp.Body)
88+
body, _ := ioutil.ReadAll(resp.Body)
8989
if string(body) != version {
9090
fmt.Println("Update Available! Your Version: " + version + " Recent Version: " + string(body))
9191
}

0 commit comments

Comments
 (0)