Skip to content

Commit

Permalink
fix: code review
Browse files Browse the repository at this point in the history
Signed-off-by: Valery Piashchynski <[email protected]>
  • Loading branch information
rustatian committed Oct 9, 2023
1 parent 6826609 commit 4388e5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modulesInfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ func ParseModuleInfo(module string, t time.Time, rev string) string {
}

func IsDigit(num string) bool {
if num == "" {
return false
}
_, err := strconv.ParseInt(num, 10, 64)
return err == nil
}

0 comments on commit 4388e5f

Please sign in to comment.