Skip to content

Commit 0517ba4

Browse files
committed
chore(lint): just return error after execute func
Signed-off-by: Bo-Yi.Wu <[email protected]>
1 parent 2f39512 commit 0517ba4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

consumer.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,7 @@ func (s *Consumer) Run(task core.QueuedMessage) error {
9999
_ = json.Unmarshal(task.Bytes(), data)
100100
}
101101

102-
if err := s.handle(data); err != nil {
103-
return err
104-
}
105-
106-
return nil
102+
return s.handle(data)
107103
}
108104

109105
// Shutdown the worker

0 commit comments

Comments
 (0)