Caused by the lint bot, which actually produced another lint error
This commit is contained in:
parent
1f798c7521
commit
0a3e70d418
1 changed files with 5 additions and 11 deletions
|
|
@ -192,25 +192,19 @@ func insertFlyover(ctx context.Context, txn bob.Tx, file *models.FileuploadFile,
|
||||||
if err == nil {
|
if err == nil {
|
||||||
setter.Condition = omit.From(condition)
|
setter.Condition = omit.From(condition)
|
||||||
} else {
|
} else {
|
||||||
lint.LogOnErrCtx(func(ctx context.Context) error {
|
addError(ctx, txn, c, int32(line_number), int32(i), fmt.Sprintf("'%s' is not a pool condition that we recognize. It should be one of %s", value, poolConditionValidValues()))
|
||||||
return addError(ctx, txn, c, int32(line_number), int32(i), fmt.Sprintf("'%s' is not a pool condition that we recognize. It should be one of %s", value, poolConditionValidValues()))
|
|
||||||
}, ctx, "add pool condition error")
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
case headerFlyoverLatitude:
|
case headerFlyoverLatitude:
|
||||||
lat, err = strconv.ParseFloat(value, 10)
|
lat, err = strconv.ParseFloat(value, 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
lint.LogOnErrCtx(func(ctx context.Context) error {
|
addError(ctx, txn, c, int32(line_number), int32(i), fmt.Sprintf("'%s' is not decimal value", value))
|
||||||
return addError(ctx, txn, c, int32(line_number), int32(i), fmt.Sprintf("'%s' is not decimal value", value))
|
|
||||||
}, ctx, "add lat error")
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
case headerFlyoverLongitude:
|
case headerFlyoverLongitude:
|
||||||
lng, err = strconv.ParseFloat(value, 10)
|
lng, err = strconv.ParseFloat(value, 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
lint.LogOnErrCtx(func(ctx context.Context) error {
|
addError(ctx, txn, c, int32(line_number), int32(i), fmt.Sprintf("'%s' is not decimal value", value))
|
||||||
return addError(ctx, txn, c, int32(line_number), int32(i), fmt.Sprintf("'%s' is not decimal value", value))
|
|
||||||
}, ctx, "add lng error")
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue