Skip to content

Commit 8a71bd9

Browse files
lunnyZettat123
andauthored
Update models/repo/fork.go
Co-authored-by: Zettat123 <[email protected]>
1 parent 82ca99d commit 8a71bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo/fork.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func GetForkedRepo(ctx context.Context, ownerID, repoID int64) (*Repository, err
2828
Get(repo)
2929
if err != nil {
3030
return nil, err
31-
} else if has {
31+
} else if !has {
3232
return nil, ErrRepoNotExist{ID: repoID}
3333
}
3434
return repo, nil

0 commit comments

Comments
 (0)