Skip to content

Commit a3b7a26

Browse files
Clean up code formatting in tests
- Remove trailing whitespace - Use len(fields) > 0 instead of >= 1 for clearer intent Co-authored-by: dlevy-msft-sql <[email protected]>
1 parent c53be10 commit a3b7a26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/sqlcmd/format_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,11 @@ func TestFormatterRealFormatting(t *testing.T) {
259259

260260
// Verify that typical REAL values use decimal notation (not scientific)
261261
assert.Contains(t, dataLine, "123.456", "Output should contain decimal representation of typical REAL value")
262-
262+
263263
// Check that the typical value portion doesn't use scientific notation
264264
// Parse columns using whitespace (the default column separator)
265265
fields := strings.Fields(dataLine)
266-
if len(fields) >= 1 {
266+
if len(fields) > 0 {
267267
// Find the field containing the typical value
268268
for _, field := range fields {
269269
if strings.Contains(field, "123.") {

0 commit comments

Comments
 (0)