Преглед на файлове

Simplify function signature

Signed-off-by: Dennis Chen <barracks510@gmail.com>
Dennis Chen преди 8 години
родител
ревизия
445620f231
променени са 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.
 // 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 != "" {
 	if name != "" {
 		logrus.Debugf("[graphdriver] trying provided driver: %s", name) // so the logs show specified driver
 		logrus.Debugf("[graphdriver] trying provided driver: %s", name) // so the logs show specified driver
 		return GetDriver(name, root, options, uidMaps, gidMaps, pg)
 		return GetDriver(name, root, options, uidMaps, gidMaps, pg)