Clean up IRI processing code

This commit is contained in:
Anthony Wang 2022-12-31 18:01:12 +00:00
parent 258fd151da
commit b4cb2356d8
No known key found for this signature in database
GPG Key ID: 42A5B952E6DD8D38
1 changed files with 0 additions and 6 deletions

View File

@ -40,11 +40,6 @@ func PersonIRIToUser(ctx context.Context, personIRI ap.IRI) (*user_model.User, e
return nil, err
}
user, err := user_model.GetUserByName(ctx, name)
if err != nil && !strings.Contains(name, "@") {
return user, err
}
return user_model.GetUserByName(ctx, name)
}
@ -73,7 +68,6 @@ func RepositoryIRIToRepository(ctx context.Context, repoIRI ap.IRI) (*repo_model
return nil, err
}
// TODO: create remote repo if not exists
return repo_model.GetRepositoryByOwnerAndName(ctx, username, reponame)
}