Skip to content

Commit beb0581

Browse files
committed
apply feedback
1 parent 5551b2f commit beb0581

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

services/convert/convert.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -771,13 +771,7 @@ func ToOAuth2Application(app *auth.OAuth2Application) *api.OAuth2Application {
771771

772772
// ToLFSLock convert a LFSLock to api.LFSLock
773773
func ToLFSLock(ctx context.Context, l *git_model.LFSLock) *api.LFSLock {
774-
var u *user_model.User
775-
var err error
776-
if l.OwnerID == user_model.ActionsUserID {
777-
u = user_model.NewActionsUser()
778-
} else {
779-
u, err = user_model.GetUserByID(ctx, l.OwnerID)
780-
}
774+
u, err := user_model.GetPossibleUserByID(ctx, l.OwnerID)
781775
if err != nil {
782776
return nil
783777
}

0 commit comments

Comments
 (0)