Skip to content

Commit

Permalink
remove unnecessary dereference expression
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmann committed Apr 8, 2024
1 parent 9e7a215 commit 7572753
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/notifier/server/mailing/mailing.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ func (a *Attachment) UnmarshalJSON(data []byte) error {
if err := json.Unmarshal(data, &aa); err != nil {
return errors.WithStack(err)
}
(*a).Filename = aa.Filename
(*a).ContentType = aa.ContentType
(*a).Reader = bytes.NewReader(aa.Data)
a.Filename = aa.Filename
a.ContentType = aa.ContentType
a.Reader = bytes.NewReader(aa.Data)
return nil
}

Expand Down

0 comments on commit 7572753

Please sign in to comment.