Skip to content

Commit

Permalink
fix: update security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryTong65 committed Apr 1, 2024
1 parent 37c26ea commit cdd835f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,16 +276,7 @@ func ParseRange(rangeStr string) (bool, int64, int64) {
}
return false, -1, -1
}

// StringToUint64 converts string to uint64
func stringToUint64(str string) (uint64, error) {
ui64, err := strconv.ParseUint(str, 10, 64)
if err != nil {
return 0, err
}
return ui64, nil
}

git ad

Check failure on line 279 in pkg/utils/utils.go

View workflow job for this annotation

GitHub Actions / golangci-lint (1.20.x, ubuntu-20.04)

expected declaration, found git (typecheck)
// stringToInt64 converts string to int64
func stringToInt64(str string) (int64, error) {
i64, err := strconv.ParseInt(str, 10, 64)
Expand Down

0 comments on commit cdd835f

Please sign in to comment.