From fddc063b978fcdf34ae8fe372c5a919169ed670d Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Tue, 14 May 2024 08:48:05 +0200 Subject: [PATCH] missed by diff --- .deadcode-out | 1 - modules/forgefed/actor.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.deadcode-out b/.deadcode-out index 9845b885a1..e7e6d217ab 100644 --- a/.deadcode-out +++ b/.deadcode-out @@ -131,7 +131,6 @@ package "code.gitea.io/gitea/models/user" func (ErrUserInactive).Unwrap func IsErrExternalLoginUserAlreadyExist func IsErrExternalLoginUserNotExist - func NewFederatedUser func IsErrUserSettingIsNotExist func GetUserAllSettings func DeleteUserSetting diff --git a/modules/forgefed/actor.go b/modules/forgefed/actor.go index 29d6f15d8b..d3cae20dec 100644 --- a/modules/forgefed/actor.go +++ b/modules/forgefed/actor.go @@ -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