mirror of
https://github.com/kha7iq/pingme.git
synced 2025-05-16 14:50:18 -07:00
Merge pull request #49 from brenkem/fix-string-conversion
fix: use strconv.ParseInt instead of strconv.Atoi
This commit is contained in:
commit
24242b5da2
@ -78,11 +78,11 @@ All configuration options are also available via environment variables.`,
|
|||||||
if len(v) <= 0 {
|
if len(v) <= 0 {
|
||||||
return helpers.ErrChannel
|
return helpers.ErrChannel
|
||||||
}
|
}
|
||||||
k, errStr := strconv.Atoi(v)
|
k, errStr := strconv.ParseInt(v, 10, 64)
|
||||||
if errStr != nil {
|
if errStr != nil {
|
||||||
return errStr
|
return errStr
|
||||||
}
|
}
|
||||||
telegramSvc.AddReceivers(int64(k))
|
telegramSvc.AddReceivers(k)
|
||||||
}
|
}
|
||||||
|
|
||||||
notifier.UseServices(telegramSvc)
|
notifier.UseServices(telegramSvc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user