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 {
|
||||
setter.Condition = omit.From(condition)
|
||||
} else {
|
||||
lint.LogOnErrCtx(func(ctx context.Context) error {
|
||||
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")
|
||||
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()))
|
||||
continue
|
||||
}
|
||||
case headerFlyoverLatitude:
|
||||
lat, err = strconv.ParseFloat(value, 10)
|
||||
lat, err = strconv.ParseFloat(value, 64)
|
||||
if err != nil {
|
||||
lint.LogOnErrCtx(func(ctx context.Context) error {
|
||||
return addError(ctx, txn, c, int32(line_number), int32(i), fmt.Sprintf("'%s' is not decimal value", value))
|
||||
}, ctx, "add lat error")
|
||||
addError(ctx, txn, c, int32(line_number), int32(i), fmt.Sprintf("'%s' is not decimal value", value))
|
||||
continue
|
||||
}
|
||||
case headerFlyoverLongitude:
|
||||
lng, err = strconv.ParseFloat(value, 10)
|
||||
lng, err = strconv.ParseFloat(value, 64)
|
||||
if err != nil {
|
||||
lint.LogOnErrCtx(func(ctx context.Context) error {
|
||||
return addError(ctx, txn, c, int32(line_number), int32(i), fmt.Sprintf("'%s' is not decimal value", value))
|
||||
}, ctx, "add lng error")
|
||||
addError(ctx, txn, c, int32(line_number), int32(i), fmt.Sprintf("'%s' is not decimal value", value))
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue