update based on feedback

This commit is contained in:
techknowlogick
2026-03-23 19:36:52 -04:00
parent 2654fa3bfa
commit 770663b23d
9 changed files with 168 additions and 122 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ func GetSSHKeypairForRepository(ctx context.Context, repo *repo_model.Repository
// Returns nil if the URL is not an SSH URL
func GetSSHKeypairForURL(ctx context.Context, repo *repo_model.Repository, url string) (*repo_model.UserSSHKeypair, error) {
if !IsSSHURL(url) {
return nil, nil
return nil, nil //nolint:nilnil // non-SSH URLs don't need a keypair
}
return GetSSHKeypairForRepository(ctx, repo)
}