@@ -80,7 +80,6 @@ func processRequest(ctx context.Context,
80
80
return nil
81
81
}
82
82
83
- var buffer bytes.Buffer
84
83
var buffer2 bytes.Buffer
85
84
var rawBuffer bytes.Buffer
86
85
// TODO: run Scorecard for each repo in a separate thread.
@@ -130,9 +129,6 @@ func processRequest(ctx context.Context,
130
129
logger .Info (errorMsg )
131
130
}
132
131
result .Date = batchRequest .GetJobTime ().AsTime ()
133
- if err := format .AsJSON (& result , true /*showDetails*/ , log .InfoLevel , & buffer ); err != nil {
134
- return fmt .Errorf ("error during result.AsJSON: %w" , err )
135
- }
136
132
137
133
if err := format .AsJSON2 (& result , true /*showDetails*/ , log .InfoLevel , checkDocs , & buffer2 ); err != nil {
138
134
return fmt .Errorf ("error during result.AsJSON2: %w" , err )
@@ -143,9 +139,6 @@ func processRequest(ctx context.Context,
143
139
return fmt .Errorf ("error during result.AsRawJSON: %w" , err )
144
140
}
145
141
}
146
- if err := data .WriteToBlobStore (ctx , bucketURL , filename , buffer .Bytes ()); err != nil {
147
- return fmt .Errorf ("error during WriteToBlobStore: %w" , err )
148
- }
149
142
150
143
if err := data .WriteToBlobStore (ctx , bucketURL2 , filename , buffer2 .Bytes ()); err != nil {
151
144
return fmt .Errorf ("error during WriteToBlobStore2: %w" , err )
0 commit comments