1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

rebased and regenerated

This commit is contained in:
Robert Koch
2019-05-25 13:32:32 +08:00
committed by Tom Limoncelli
parent 367a53d34f
commit 9652ef11a7
3 changed files with 7 additions and 8 deletions

6
vendor/gopkg.in/ini.v1/key.go generated vendored
View File

@@ -186,8 +186,8 @@ func (k *Key) Float64() (float64, error) {
// Int returns int type value.
func (k *Key) Int() (int, error) {
v, err := strconv.ParseInt(k.String(), 0, 64)
return int(v), err
v, err := strconv.ParseInt(k.String(), 0, 64)
return int(v), err
}
// Int64 returns int64 type value.
@@ -669,7 +669,7 @@ func (k *Key) parseInts(strs []string, addInvalid, returnOnInvalid bool) ([]int,
vals := make([]int, 0, len(strs))
for _, str := range strs {
valInt64, err := strconv.ParseInt(str, 0, 64)
val := int(valInt64)
val := int(valInt64)
if err != nil && returnOnInvalid {
return nil, err
}