fix(server): wrap defer tx.Rollback for errcheck + gofmt -s alignment
golangci-lint surfaced both on 9c7dec6:
- errcheck on bare 'defer tx.Rollback(ctx)' in 2 test files
- gofmt -s wanted tighter map-key alignment in library_sync.go +
library_sync_test.go (auto-fixed by 'gofmt -s -w')
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -227,8 +227,8 @@ func scopedLikeRows(rows []string, userIDStr, entityKey string) []json.RawMessag
|
||||
continue
|
||||
}
|
||||
b, _ := json.Marshal(map[string]string{
|
||||
"user_id": parts[0],
|
||||
entityKey: parts[1],
|
||||
"user_id": parts[0],
|
||||
entityKey: parts[1],
|
||||
})
|
||||
msgs = append(msgs, b)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user