Skip to content

Commit 791f3e4

Browse files
Ajit Pratap SinghAjit Pratap Singh
authored andcommitted
fix: remove unused truncateQuery helper function
Addresses staticcheck lint error U1000 (unused function). The truncateQuery helper was defined but never called.
1 parent aae8ce5 commit 791f3e4

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

pkg/compatibility/compatibility_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,3 @@ func extractQueries(content string) []string {
266266

267267
return queries
268268
}
269-
270-
// Test helper to truncate long queries for display
271-
func truncateQuery(sql string, maxLen int) string {
272-
if len(sql) <= maxLen {
273-
return sql
274-
}
275-
return sql[:maxLen] + "... (truncated)"
276-
}

0 commit comments

Comments
 (0)