We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5551b2f commit beb0581Copy full SHA for beb0581
services/convert/convert.go
@@ -771,13 +771,7 @@ func ToOAuth2Application(app *auth.OAuth2Application) *api.OAuth2Application {
771
772
// ToLFSLock convert a LFSLock to api.LFSLock
773
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
- }
+ u, err := user_model.GetPossibleUserByID(ctx, l.OwnerID)
781
if err != nil {
782
return nil
783
}
0 commit comments