mirror of
https://github.com/harness/drone.git
synced 2025-05-01 21:21:11 +00:00
batch: drop unpossible error check
in favor of annotated error message. There is also unrelated diff due to gofmt.
This commit is contained in:
parent
4004cb6008
commit
f4f6d13df9
@ -77,10 +77,7 @@ func (b *batchUpdater) Batch(ctx context.Context, user *core.User, batch *core.B
|
|||||||
}
|
}
|
||||||
_, err = execer.Exec(stmt, args...)
|
_, err = execer.Exec(stmt, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return fmt.Errorf("Error inserting repository: %s", err)
|
||||||
}
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("Error inserting repositroy: %s", err)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -120,10 +117,7 @@ func (b *batchUpdater) Batch(ctx context.Context, user *core.User, batch *core.B
|
|||||||
}
|
}
|
||||||
_, err = execer.Exec(stmt, args...)
|
_, err = execer.Exec(stmt, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return fmt.Errorf("Error updating repository: %s", err)
|
||||||
}
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("Error updating repositroy: %s", err)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stmt = permInsertIgnoreStmt
|
stmt = permInsertIgnoreStmt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user