@@ -207,7 +207,7 @@ func (e *EventStore) AppendToWithExecer(ctx context.Context, conn driverSQL.Exec
207207
208208 result , err := conn .ExecContext (
209209 ctx ,
210- /* #nosec */
210+ /* #nosec G201 */
211211 fmt .Sprintf (
212212 "INSERT INTO %s (%s) VALUES %s" ,
213213 tableName ,
@@ -254,17 +254,17 @@ func (e *EventStore) prepareInsertValues(streamEvents []goengine.Message, lenCol
254254 for i := 0 ; i < placeholderCount ; i ++ {
255255 if m := i % lenCols ; m == 0 {
256256 if i != 0 {
257- placeholders .WriteString (")," )
257+ _ , _ = placeholders .WriteString (")," )
258258 }
259- placeholders .WriteRune ('(' )
259+ _ , _ = placeholders .WriteRune ('(' )
260260 } else {
261- placeholders .WriteRune (',' )
261+ _ , _ = placeholders .WriteRune (',' )
262262 }
263263
264- placeholders .WriteRune ('$' )
265- placeholders .WriteString (strconv .Itoa (i + 1 ))
264+ _ , _ = placeholders .WriteRune ('$' )
265+ _ , _ = placeholders .WriteString (strconv .Itoa (i + 1 ))
266266 }
267- placeholders .WriteString (")" )
267+ _ , _ = placeholders .WriteString (")" )
268268 e .preparedInsertPlaceholder [messageCount ] = placeholders .String ()
269269
270270 return e .preparedInsertPlaceholder [messageCount ]
0 commit comments