aboutsummaryrefslogtreecommitdiff
path: root/internal/speed
diff options
context:
space:
mode:
authorJakob Unterwurzacher2025-07-07 19:54:48 +0200
committerJakob Unterwurzacher2025-07-07 19:59:35 +0200
commit8f5df19b353e02ffba842fd1b15ccf93da7ee3b4 (patch)
tree8f68b74e56a1d20af82e5093a059d180c925f9be /internal/speed
parentcdb80ea9825d2e876f1cf579bf960e4da7656b4c (diff)
Fix a bunch of staticcheck errors
Tool-assisted.
Diffstat (limited to 'internal/speed')
-rw-r--r--internal/speed/cpuinfo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/speed/cpuinfo.go b/internal/speed/cpuinfo.go
index df3177d..636a4f0 100644
--- a/internal/speed/cpuinfo.go
+++ b/internal/speed/cpuinfo.go
@@ -1,7 +1,7 @@
package speed
import (
- "io/ioutil"
+ "io"
"os"
"runtime"
"strings"
@@ -33,7 +33,7 @@ func cpuModelName() string {
if err != nil {
return ""
}
- content, err := ioutil.ReadAll(f)
+ content, err := io.ReadAll(f)
if err != nil {
return ""
}