mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-06-24 20:00:02 +02:00
missed by diff
This commit is contained in:
parent
9d32c5a29b
commit
fddc063b97
2 changed files with 2 additions and 3 deletions
|
@ -137,8 +137,8 @@ func NewRepositoryID(uri, source string) (RepositoryID, error) {
|
|||
|
||||
// validate Person specific path
|
||||
repoID := RepositoryID{result}
|
||||
if valid, outcome := validation.IsValid(repoID); !valid {
|
||||
return RepositoryID{}, outcome
|
||||
if valid, err := validation.IsValid(repoID); !valid {
|
||||
return RepositoryID{}, err
|
||||
}
|
||||
|
||||
return repoID, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue