Skip to content

Commit

Permalink
Merge "FAB-15403 avoid using Go key word for var"
Browse files Browse the repository at this point in the history
  • Loading branch information
mastersingh24 authored and Gerrit Code Review committed May 10, 2019
2 parents 508eb18 + 07432db commit cfe491c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bccsp/factory/pluginfactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ 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))
symNew, 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 symNew(config.PluginOpts.Config)
}

0 comments on commit cfe491c

Please sign in to comment.