Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 6317b76

Browse files
committed
Apply gofmt
1 parent 8a21b34 commit 6317b76

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

common/diff.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type DiffType string
1414

1515
const (
1616
// ActionAdd is used for inserted rows and created objects
17-
ActionAdd DiffType = "add"
17+
ActionAdd DiffType = "add"
1818

1919
// ActionDelete is used for deleted rows and dropped objects
2020
ActionDelete DiffType = "delete"
@@ -406,7 +406,7 @@ func dataDiffForModifiedTableRows(sdb *sqlite.Conn, tableName string, merge Merg
406406
query += "B." + c + ","
407407
}
408408
query += "'" + string(ActionModify) + "'" // Updated row
409-
for _, c := range otherEscaped { // Other columns last
409+
for _, c := range otherEscaped { // Other columns last
410410
query += ",A." + c + " IS NOT B." + c + ",B." + c
411411
}
412412

@@ -430,7 +430,7 @@ func dataDiffForModifiedTableRows(sdb *sqlite.Conn, tableName string, merge Merg
430430
for _, c := range pkEscaped { // Primary key columns first. This needs to be from the first table for deleted rows
431431
query += "A." + c + ","
432432
}
433-
query += "'" + string(ActionDelete) + "'" // Deleted row
433+
query += "'" + string(ActionDelete) + "'" // Deleted row
434434
query += strings.Repeat(",NULL", len(otherEscaped)*2) // Just NULL for all the other columns. They don't matter for deleted rows
435435

436436
query += " FROM main." + EscapeId(tableName) + " A WHERE "
@@ -447,7 +447,7 @@ func dataDiffForModifiedTableRows(sdb *sqlite.Conn, tableName string, merge Merg
447447
query += "B." + c + ","
448448
}
449449
query += "'" + string(ActionAdd) + "'" // Inserted row
450-
for _, c := range otherEscaped { // Other columns last. Always set the modified flag for inserted rows
450+
for _, c := range otherEscaped { // Other columns last. Always set the modified flag for inserted rows
451451
query += ",1,B." + c
452452
}
453453

0 commit comments

Comments
 (0)