Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aomerk committed Jan 8, 2024
1 parent a7db0f2 commit c5874ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions clients/graphql/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ func (g *GetAlertResponseItem) ToAlertEvents() []*protocol.AlertEvent {
return resp
}

// defaultInputAlias is a shorthand for non-batched queries
var defaultInputAlias = idxToInputAlias(0)

// createGetAlertsQuery creates aliased graphql queries, using alerts${index} and input${index} as aliases.
func createGetAlertsQuery(inputs []*AlertsInput) (string, map[string]interface{}) {
variables := make(map[string]interface{})
Expand All @@ -175,7 +172,7 @@ func createGetAlertsQuery(inputs []*AlertsInput) (string, map[string]interface{}
queryBuilder.WriteString("}")

// Add the input to the variables map
variables[fmt.Sprintf("%s", idxToInputAlias(i))] = input
variables[idxToInputAlias(i)] = input
}

// End of the query
Expand Down
2 changes: 1 addition & 1 deletion feeds/combiner.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (cf *combinerFeed) handleSubscriptions(alertHandlers []cfHandler, subscript

// handle subscriptions in batches
for subscriber, botSubscriptions := range subscriberBatchMap {
logger = log.WithFields(
logger = logger.WithFields(
log.Fields{
"subscriberBotId": subscriber.BotID,
"subscriberBotOwner": subscriber.BotOwner,
Expand Down

0 comments on commit c5874ce

Please sign in to comment.