diff options
Diffstat (limited to 'pkg/commands/patch/patch_modifier.go')
-rw-r--r-- | pkg/commands/patch/patch_modifier.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/patch/patch_modifier.go b/pkg/commands/patch/patch_modifier.go index 3ab13931b..2109ad1f0 100644 --- a/pkg/commands/patch/patch_modifier.go +++ b/pkg/commands/patch/patch_modifier.go @@ -22,7 +22,7 @@ func GetHeaderFromDiff(diff string) string { func GetHunksFromDiff(diff string) []*PatchHunk { hunks := []*PatchHunk{} firstLineIdx := -1 - var hunkLines []string + var hunkLines []string //nolint:prealloc pastDiffHeader := false for lineIdx, line := range strings.SplitAfter(diff, "\n") { |