Skip to content

Commit 38a3a94

Browse files
committed
fix else condition
1 parent e13757a commit 38a3a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/git-remote-gitopia/gitopia.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ func (h *GitopiaHandler) Push(remote *core.Remote, refsToPush []core.RefToPush)
397397
if err != nil && strings.Contains(err.Error(), "packfile update proposal not found") {
398398
// There is no change in packfile so set packfile cid to old_cid itself
399399
packfileCid = packfileRes.Packfile.OldCid
400-
} else {
400+
} else if err != nil {
401401
return nil, err
402402
}
403403
if packfileUpdateProposalRes != nil {

0 commit comments

Comments
 (0)