We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f6add9 commit 4597172Copy full SHA for 4597172
internal/util/parse.go
@@ -14,7 +14,7 @@
14
package util
15
16
import (
17
- "fmt"
+ "errors"
18
"os"
19
"strconv"
20
"strings"
@@ -120,7 +120,7 @@ func ReadHexFromFile(path string) (uint64, error) {
120
}
121
hexString := strings.TrimSpace(string(data))
122
if !strings.HasPrefix(hexString, "0x") {
123
- return 0, fmt.Errorf("invalid format: hex string does not start with '0x'")
+ return 0, errors.New("invalid format: hex string does not start with '0x'")
124
125
return strconv.ParseUint(hexString[2:], 16, 64)
126
0 commit comments