File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ func ParseVolume(spec string) (types.ServiceVolumeConfig, error) {
36
36
return volume , errors .New ("invalid empty volume spec" )
37
37
case 1 , 2 :
38
38
volume .Target = spec
39
- volume .Type = string ( types .VolumeTypeVolume )
39
+ volume .Type = types .VolumeTypeVolume
40
40
return volume , nil
41
41
}
42
42
43
- buffer := []rune {}
43
+ var buffer []rune
44
44
for _ , char := range spec + string (endOfSpec ) {
45
45
switch {
46
46
case isWindowsDrive (buffer , char ):
@@ -50,7 +50,7 @@ func ParseVolume(spec string) (types.ServiceVolumeConfig, error) {
50
50
populateType (& volume )
51
51
return volume , errors .Wrapf (err , "invalid spec: %s" , spec )
52
52
}
53
- buffer = [] rune {}
53
+ buffer = nil
54
54
default :
55
55
buffer = append (buffer , char )
56
56
}
You can’t perform that action at this time.
0 commit comments