Skip to content

Commit 32ee3ef

Browse files
committed
adjusting string slipt on codequality.go
1 parent 2a20f80 commit 32ee3ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/gitlab/codequality.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ func NewCodeQuality(diff yamlfmt.FileDiff) (CodeQuality, bool) {
7373

7474
// detectChangedLines finds the first and last lines that differ between original and formatted content.
7575
func detectChangedLines(diff *yamlfmt.FileDiff) (begin int, end *int) {
76-
original := strings.Split(diff.Diff.Original, "\n")
77-
formatted := strings.Split(diff.Diff.Formatted, "\n")
76+
original := strings.Split(string(diff.Diff.Original), "\n")
77+
formatted := strings.Split(string(diff.Diff.Formatted), "\n")
7878

7979
max := len(original)
8080
if len(formatted) > max {

0 commit comments

Comments
 (0)