Skip to content

Commit

Permalink
remove the unnecessary err check
Browse files Browse the repository at this point in the history
  • Loading branch information
刘林欣 committed Aug 31, 2020
1 parent a4decaa commit 0926f95
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions chain/messagepool/messagepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,7 @@ func New(api Provider, ds dtypes.MetadataDS, netName dtypes.NetworkName) (*Messa

cfg, err := loadConfig(ds)
if err != nil {
if err != nil {
return nil, xerrors.Errorf("error loading mpool config: %w", err)
}
return nil, xerrors.Errorf("error loading mpool config: %w", err)
}

mp := &MessagePool{
Expand Down

0 comments on commit 0926f95

Please sign in to comment.