@@ -33,11 +33,14 @@ const requiredBridgeMigration = "bridgesync0012"
3333// skipped (INSERT OR IGNORE).
3434//
3535// Column-level differences between schema versions are handled automatically:
36- // - block.hash – present since bridgesync migration 0003; defaults to '' .
37- // - claim.tx_hash – present since bridgesync migration 0002; defaults to '' .
36+ // - block.hash – present since bridgesync migration 0003; defaults to ” .
37+ // - claim.tx_hash – present since bridgesync migration 0002; defaults to ” .
3838// - claim.block_timestamp – present since bridgesync migration 0002; defaults to 0.
39- // - claim.type – present since bridgesync migration 0012; defaults to ''.
40- func ImportDataFromBridgesyncer (ctx context.Context , logger aggkitcommon.Logger , bridgeDBFilename string , claimDBFilename string ) error {
39+ // - claim.type – present since bridgesync migration 0012; defaults to ”.
40+ func ImportDataFromBridgesyncer (ctx context.Context ,
41+ logger aggkitcommon.Logger ,
42+ bridgeDBFilename string ,
43+ claimDBFilename string ) error {
4144 if logger == nil {
4245 logger = log .WithFields ("module" , "ImportDataFromBridgesyncer" )
4346 }
@@ -195,7 +198,7 @@ func checkBridgeTablesOnConn(ctx context.Context, conn *sql.Conn) (bool, error)
195198 placeholders [i ] = fmt .Sprintf ("$%d" , i + 1 )
196199 args [i ] = name
197200 }
198- query := fmt .Sprintf (
201+ query := fmt .Sprintf ( //nolint:gosec // placeholders contain only "$N" positional markers, no user input
199202 `SELECT COUNT(*) FROM sqlite_master WHERE type='table' AND name IN (%s)` ,
200203 strings .Join (placeholders , "," ),
201204 )
@@ -392,4 +395,3 @@ func readBridgeKeyValueRow(ctx context.Context, bridgeDBFilename string) (*keyVa
392395 }
393396 return row , nil
394397}
395-
0 commit comments