Skip to content

Commit 08b6584

Browse files
fix(cmd): use bytes.Buffer.Bytes in parallel index JSON test (staticcheck S1030)
Co-authored-by: Ben Schellenberger <bschellenberger2600@users.noreply.github.com>
1 parent 04f118d commit 08b6584

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cmd/rain_parallel_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func TestRunRainReposParallel_PreservesSelectionIndex(t *testing.T) {
126126
}
127127

128128
var doc jsonRunDocument
129-
if err := json.Unmarshal([]byte(out.String()), &doc); err == nil && len(doc.Repositories) > 0 {
129+
if err := json.Unmarshal(out.Bytes(), &doc); err == nil && len(doc.Repositories) > 0 {
130130
for _, rep := range doc.Repositories {
131131
want := byName[rep.Name].Index
132132
if rep.Index != want {

0 commit comments

Comments
 (0)