Skip to content

Commit

Permalink
Clean ineffassign
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchie0x4ff committed Jun 8, 2020
1 parent 206a243 commit e4b1534
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func ByteFormat(inputNum float64, precision int) string {
unit = " PB" // petabyte
} else if inputNum >= 1000000000000 {
returnVal = RoundUp((inputNum / 1099511627776), precision)
unit = " TB" // terrabyte
unit = " TB" // terabyte
} else if inputNum >= 1000000000 {
returnVal = RoundUp((inputNum / 1073741824), precision)
unit = " GB" // gigabyte
Expand Down Expand Up @@ -178,7 +178,7 @@ func generateInfo(config Config, title xterm256.Color, info xterm256.Color, user

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

pn, _, err := k.GetStringValue("ProductName")
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func main() {
fmt.Println("Couldn't check for upate. Are you connected to the internet?")
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
body, _ := ioutil.ReadAll(resp.Body)
if string(body) != version {
fmt.Println("Update Available! Your Version: " + version + " Recent Version: " + string(body))
}
Expand Down

0 comments on commit e4b1534

Please sign in to comment.