Skip to content

Commit

Permalink
fix: deepsource warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aloknerurkar committed Jun 14, 2021
1 parent 0ce2fdc commit aaafb9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/postage/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ func (ps *service) Add(st *StampIssuer) {
// issuer was not created initially, we will create it here.
func (ps *service) Handle(b *Batch) {
_, err := ps.GetStampIssuer(b.ID)
switch {
case errors.Is(err, ErrNotFound):
if errors.Is(err, ErrNotFound) {
ps.Add(NewStampIssuer(
"recovered",
string(b.Owner),
Expand Down

0 comments on commit aaafb9d

Please sign in to comment.