Skip to content

Commit

Permalink
fix: fix slice init length
Browse files Browse the repository at this point in the history
  • Loading branch information
rusttech authored Oct 2, 2024
1 parent 65e3cea commit 0fd3888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/command_fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func fetchCommand(cmd *cobra.Command, args []string) {
}

if len(args) > 1 {
refShas := make([]string, len(refs))
refShas := make([]string, 0, len(refs))
for _, ref := range refs {
refShas = append(refShas, ref.Sha)
}
Expand Down

0 comments on commit 0fd3888

Please sign in to comment.