Skip to content

Commit

Permalink
remove redundant return on a couple extra funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Apr 24, 2024
1 parent 381b1b4 commit 30627be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions database/build/get_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ func (e *engine) GetBuildForRepo(ctx context.Context, r *api.Repo, number int) (
err = b.Repo.Decrypt(e.config.EncryptionKey)
if err != nil {
e.logger.Errorf("unable to decrypt repo %s/%s: %v", r.GetOrg(), r.GetName(), err)

return b.ToAPI(), nil
}

return b.ToAPI(), nil
Expand Down
2 changes: 0 additions & 2 deletions database/build/last_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ func (e *engine) LastBuildForRepo(ctx context.Context, r *api.Repo, branch strin
err = b.Repo.Decrypt(e.config.EncryptionKey)
if err != nil {
e.logger.Errorf("unable to decrypt repo %s/%s: %v", r.GetOrg(), r.GetName(), err)

return b.ToAPI(), nil
}

return b.ToAPI(), nil
Expand Down

0 comments on commit 30627be

Please sign in to comment.