From 26fc99713d22f2dd853f344280217d934f06129d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Negovanovi=C4=87?= Date: Wed, 2 Oct 2024 14:02:24 +0200 Subject: [PATCH] fix: remove redundant code --- ethtxmanager/sqlstorage/sqlstorage.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ethtxmanager/sqlstorage/sqlstorage.go b/ethtxmanager/sqlstorage/sqlstorage.go index aaa8588..5123d9d 100644 --- a/ethtxmanager/sqlstorage/sqlstorage.go +++ b/ethtxmanager/sqlstorage/sqlstorage.go @@ -205,14 +205,6 @@ func (s *SqlStorage) Update(ctx context.Context, mTx types.MonitoredTx) error { return fmt.Errorf("failed to build the update statement (column names resolution failed): %w", err) } - setClause := "" - for i, col := range columns[1:] { - if i > 0 { - setClause += ", " - } - setClause += fmt.Sprintf("%s = $%d", col, i+1) - } - // Use strings.Builder instead of fmt.Sprintf for safer query building var builder strings.Builder builder.WriteString("UPDATE " + monitoredTxsTable + " SET ")