Skip to content

Commit 02749d3

Browse files
committed
Fixed tests
- Bumped version in config file - Removed unused function - Ran dep ensure -update
1 parent c3399ba commit 02749d3

File tree

3 files changed

+18
-28
lines changed

3 files changed

+18
-28
lines changed

Gopkg.lock

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"interface": {
1515
"socket": "linode.sock",
16-
"types": [ "docker.volumedriver/1.0" ]
16+
"types": [ "docker.volumedriver/1.1" ]
1717
},
1818
"linux": {
1919
"allowAllDevices": true,

main.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,6 @@ func cfgInt(name string, def int, desc string) *int {
9393
return flag.Int(name, newDef, desc)
9494
}
9595

96-
func cfgBool(name string, def bool, desc string) *bool {
97-
newDef := def
98-
if val, found := getEnv(name); found {
99-
if b, err := strconv.ParseBool(val); err == nil {
100-
newDef = b
101-
}
102-
}
103-
return flag.Bool(name, newDef, desc)
104-
}
105-
10696
func getEnv(name string) (string, bool) {
10797
if val, found := os.LookupEnv(name); found {
10898
return val, true

0 commit comments

Comments
 (0)