Merge pull request #2663 from ferhatelmas/drop-err [CI SKIP]
batch: drop unpossible error check
This commit is contained in:
commit
be5b2fa2df
1 changed files with 4 additions and 10 deletions
|
@ -77,10 +77,7 @@ func (b *batchUpdater) Batch(ctx context.Context, user *core.User, batch *core.B
|
|||
}
|
||||
_, err = execer.Exec(stmt, args...)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("Error inserting repositroy: %s", err)
|
||||
return fmt.Errorf("Error inserting repository: %s", err)
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -120,10 +117,7 @@ func (b *batchUpdater) Batch(ctx context.Context, user *core.User, batch *core.B
|
|||
}
|
||||
_, err = execer.Exec(stmt, args...)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("Error updating repositroy: %s", err)
|
||||
return fmt.Errorf("Error updating repository: %s", err)
|
||||
}
|
||||
|
||||
stmt = permInsertIgnoreStmt
|
||||
|
|
Loading…
Reference in a new issue