Merge pull request #3421 from IPFSMain-Official/master

remove the unnecessary err check
This commit is contained in:
Łukasz Magiera 2020-08-31 10:08:36 +02:00 committed by GitHub
commit e1e01524e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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{