-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…44) This one's so tiny that it's minutiae, but as I was looking at the null-ability of various job row fields today while implementing Ruby, I realized that it doesn't really seem necessary to be marshaling a `NULL` tags value to an empty `[]string{}` slice. In Go, `[]string{}` and `[]string(nil)` are functionally identical in every way that I can think of (`append` on `nil` works, `len` on `nil` works), so I think it makes sense just to avoid the allocation and reflect what the database's actual value is. [1] https://go.dev/tour/moretypes/15
- Loading branch information
Showing
3 changed files
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters