浏览代码

Merge pull request #27335 from barracks510/master

Simplify function signature
Sebastiaan van Stijn 8 年之前
父节点
当前提交
429812f86a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      daemon/graphdriver/driver.go

+ 1 - 1
daemon/graphdriver/driver.go

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