Skip to content

Commit

Permalink
add suggestion from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
endyApina committed Jun 17, 2024
1 parent 55d2a24 commit 1fc1898
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (n *notificationRow) ToNotificationModel() (models.Notification, error) {
// CustomFields is set below
}

if n.CustomFields != nil {
if len(n.CustomFields) > 0 {
err := json.Unmarshal(n.CustomFields, &notification.CustomFields)
if err != nil {
return empty, err
Expand Down

0 comments on commit 1fc1898

Please sign in to comment.