Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Dec 10, 2024
1 parent 3aae6d5 commit 9c939c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pdatatest/pprofiletest/profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func CompareProfile(expected, actual pprofile.Profile) error {
errs = multierr.Append(errs, fmt.Errorf("originalPayloadFormat does not match expected '%s', actual '%s'", expected.OriginalPayloadFormat(), actual.OriginalPayloadFormat()))
}

if bytes.Compare(expected.OriginalPayload().AsRaw(), actual.OriginalPayload().AsRaw()) != 0 {
if !bytes.Equal(expected.OriginalPayload().AsRaw(), actual.OriginalPayload().AsRaw()) {
errs = multierr.Append(errs, fmt.Errorf("keepFrames does not match expected '%s', actual '%s'", expected.OriginalPayload().AsRaw(), actual.OriginalPayload().AsRaw()))
}

Expand Down

0 comments on commit 9c939c5

Please sign in to comment.