Skip to content

Commit

Permalink
[FAB-17821] fix: use keyword as variable name
Browse files Browse the repository at this point in the history
Signed-off-by: jilg <liguo_ji@outlook.com>
  • Loading branch information
Eggsyz authored and ale-linux committed Apr 29, 2020
1 parent 1964a1b commit 6112b99
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bccsp/factory/pluginfactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,9 @@ func (f *PluginFactory) Get(config *FactoryOpts) (bccsp.BCCSP, error) {
}

// check to make sure symbol New meets the required function signature
new, ok := sym.(func(config map[string]interface{}) (bccsp.BCCSP, error))
newBccsp, ok := sym.(func(config map[string]interface{}) (bccsp.BCCSP, error))
if !ok {
return nil, fmt.Errorf("Plugin does not implement the required function signature for 'New'")
}

return new(config.PluginOpts.Config)
return newBccsp(config.PluginOpts.Config)
}

0 comments on commit 6112b99

Please sign in to comment.