diff --git a/modulesInfo.go b/modulesInfo.go index 24bf6a9..911f015 100644 --- a/modulesInfo.go +++ b/modulesInfo.go @@ -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 }