Skip to content

Commit 762fca4

Browse files
committed
squash: use shift instead of concat for faster and more idiomatic inserts
1 parent a0ff1a4 commit 762fca4

File tree

1 file changed

+1
-1
lines changed
  • helpers/sql-processor/lib/opentelemetry/helpers/sql_processor

1 file changed

+1
-1
lines changed

helpers/sql-processor/lib/opentelemetry/helpers/sql_processor/commenter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def set(carrier, headers)
4646
comment = "/*#{comment_parts.join(',')}*/"
4747

4848
# Append to end of query (spec recommendation)
49-
carrier.concat(" #{comment}")
49+
carrier << " #{comment}"
5050
end
5151
end
5252

0 commit comments

Comments
 (0)