Simplify function signature

Signed-off-by: Dennis Chen <barracks510@gmail.com>
This commit is contained in:
Dennis Chen 2016-10-12 21:31:55 -04:00
parent 8658748ef7
commit 445620f231
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ func getBuiltinDriver(name, home string, options []string, uidMaps, gidMaps []id
}
// New creates the driver and initializes it at the specified root.
func New(root string, name string, options []string, uidMaps, gidMaps []idtools.IDMap, pg plugingetter.PluginGetter) (Driver, error) {
func New(root, name string, options []string, uidMaps, gidMaps []idtools.IDMap, pg plugingetter.PluginGetter) (Driver, error) {
if name != "" {
logrus.Debugf("[graphdriver] trying provided driver: %s", name) // so the logs show specified driver
return GetDriver(name, root, options, uidMaps, gidMaps, pg)