Skip to content

Commit

Permalink
chore(notifications): please linter
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbitfly committed Sep 25, 2024
1 parent 6ab6c53 commit 0e5c532
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions backend/pkg/notification/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func GetSubsForEventFilter(eventName types.EventName, lastSentFilter string, las
if strings.HasPrefix(sub.EventFilter, "vdb:") {
dashboardData := strings.Split(sub.EventFilter, ":")
if len(dashboardData) != 3 {
log.Error(fmt.Errorf("Invalid dashboard subscription: %s", sub.EventFilter), "Invalid dashboard subscription", 0)
log.Error(fmt.Errorf("invalid dashboard subscription: %s", sub.EventFilter), "invalid dashboard subscription", 0)
continue
}
dashboardId, err := strconv.ParseInt(dashboardData[1], 10, 64)
Expand Down Expand Up @@ -177,7 +177,6 @@ func GetSubsForEventFilter(eventName types.EventName, lastSentFilter string, las
}
}
}

} else {
if _, ok := subMap[sub.EventFilter]; !ok {
subMap[sub.EventFilter] = make([]types.Subscription, 0)
Expand Down
1 change: 0 additions & 1 deletion backend/pkg/notification/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ type ethClientNotification struct {
}

func (n *ethClientNotification) GetInfo(format types.NotificationFormat) string {

switch format {
case types.NotifciationFormatHtml:
generalPart := fmt.Sprintf(`A new version for %s is available.`, n.EthClient)
Expand Down

0 comments on commit 0e5c532

Please sign in to comment.