Skip to content

Commit

Permalink
fix: use strconv.ParseInt instead of strconv.Atoi
Browse files Browse the repository at this point in the history
  • Loading branch information
Maik Brenke committed Jun 18, 2021
1 parent 7186e5d commit efac11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/telegram/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ All configuration options are also available via environment variables.`,
if len(v) <= 0 {
return helpers.ErrChannel
}
k, errStr := strconv.Atoi(v)
k, errStr := strconv.ParseInt(v, 10, 64)
if errStr != nil {
return errStr
}
Expand Down

0 comments on commit efac11a

Please sign in to comment.