Rename db.IsUnique to db.IsUniqueError (#90)

This commit is contained in:
Michael Gaffney authored and GitHub committed 2020-06-01 09:54:02 -04:00
1 parent 4f3f9ed222
commit 9eaf8afb6f
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -42,9 +42,9 @@ var (
ErrMultipleRecords = errors.New("multiple records")
)
// IsUnique returns a boolean indicating whether the error is known to
// IsUniqueError returns a boolean indicating whether the error is known to
// report a unique constraint violation.
func IsUnique(err error) bool {
func IsUniqueError(err error) bool {
if err == nil {
return false
}