Skip to content

Commit

Permalink
Fix linter.
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Erb <[email protected]>
  • Loading branch information
serb-google committed Jan 6, 2025
1 parent 62919c4 commit 026476f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/scorecard/scorecard.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,15 @@ func (scc ScClient) FetchBranches() ([]string, error) {
}

var ret []string
refs.ForEach(func(ref *plumbing.Reference) error {
err = refs.ForEach(func(ref *plumbing.Reference) error {
if ref.Name().IsRemote() {
ret = append(ret, ref.Name().String())
}
return nil
})
if err != nil {
return nil, err
}
return ret, nil
}

Expand Down

0 comments on commit 026476f

Please sign in to comment.