Skip to content

Commit

Permalink
small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeunier28 committed Oct 24, 2023
1 parent 8182871 commit 8e96c27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static String inject(
sb.append(sql);
sb.append(OPEN_COMMENT);
toComment(sb, injectTrace, parentService, dbService, env, version, traceParent);
if (sb.length() == 2 + sql.length()) {
if (sb.length() == OPEN_COMMENT.length() + sql.length()) {
return sql;
}
sb.append(CLOSE_COMMENT);
Expand Down

0 comments on commit 8e96c27

Please sign in to comment.