Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash committed Aug 31, 2024
1 parent 0de6696 commit a8408ac
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions pkg/models/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,6 @@ func (c *fromEdit) nullInt64(out *sql.NullInt64, in *int64, old *int64) {
}
}

func (c *fromEdit) sqlDate(out *SQLDate, in *string, old *string) {
if in != nil {
out.String = *in
out.Valid = true
} else if old != nil {
*out = SQLDate{}
}
}

func (c *fromEdit) nullUUID(out *uuid.NullUUID, in *uuid.UUID, old *uuid.UUID) {
if in != nil {
out.UUID = *in
Expand Down Expand Up @@ -153,21 +144,6 @@ func (d *editDiff) nullStringEnum(old sql.NullString, new stringEnum) (oldOut *s
return
}

//nolint:unused
func (d *editDiff) sqlDate(old SQLDate, new *string) (oldOut *string, newOut *string) {
if old.Valid && (new == nil || *new != old.String) {
oldVal := old.String
oldOut = &oldVal
}

if new != nil && (!old.Valid || *new != old.String) {
newVal := *new
newOut = &newVal
}

return
}

type editValidator struct {
err error
}
Expand Down

0 comments on commit a8408ac

Please sign in to comment.