Skip to content

Commit

Permalink
small bug fix [goreleaser] (#3086)
Browse files Browse the repository at this point in the history
  • Loading branch information
golangisfun123 authored Sep 1, 2024
1 parent c6953ed commit 7e0b8f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contrib/opbot/botmd/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,15 @@ func (b *Bot) rfqRefund() *slacker.CommandDefinition {
return

Check warning on line 304 in contrib/opbot/botmd/commands.go

View check run for this annotation

Codecov / codecov/patch

contrib/opbot/botmd/commands.go#L304

Added line #L304 was not covered by tests
}

canRefund, err := b.screener.ScreenAddress(ctx.Context(), rawRequest.Sender)
isScreened, err := b.screener.ScreenAddress(ctx.Context(), rawRequest.Sender)
if err != nil {
_, err := ctx.Response().Reply("error screening address")

Check warning on line 309 in contrib/opbot/botmd/commands.go

View check run for this annotation

Codecov / codecov/patch

contrib/opbot/botmd/commands.go#L307-L309

Added lines #L307 - L309 were not covered by tests
if err != nil {
log.Println(err)

Check warning on line 311 in contrib/opbot/botmd/commands.go

View check run for this annotation

Codecov / codecov/patch

contrib/opbot/botmd/commands.go#L311

Added line #L311 was not covered by tests
}
return

Check warning on line 313 in contrib/opbot/botmd/commands.go

View check run for this annotation

Codecov / codecov/patch

contrib/opbot/botmd/commands.go#L313

Added line #L313 was not covered by tests
}
if !canRefund {
if isScreened {
_, err := ctx.Response().Reply("address cannot be refunded")

Check warning on line 316 in contrib/opbot/botmd/commands.go

View check run for this annotation

Codecov / codecov/patch

contrib/opbot/botmd/commands.go#L315-L316

Added lines #L315 - L316 were not covered by tests
if err != nil {
log.Println(err)

Check warning on line 318 in contrib/opbot/botmd/commands.go

View check run for this annotation

Codecov / codecov/patch

contrib/opbot/botmd/commands.go#L318

Added line #L318 was not covered by tests
Expand Down
3 changes: 2 additions & 1 deletion contrib/opbot/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package config

import (
"errors"
"strings"

"github.com/synapsecns/sanguine/ethergo/signer/config"
submitterConfig "github.com/synapsecns/sanguine/ethergo/submitter/config"
"strings"
)

// Config represents the configuration of the application.
Expand Down

0 comments on commit 7e0b8f1

Please sign in to comment.