Merge pull request #2663 from ferhatelmas/drop-err [CI SKIP]

batch: drop unpossible error check
This commit is contained in:
Brad Rydzewski 2019-04-16 16:17:53 -07:00 committed by GitHub
commit be5b2fa2df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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