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) {
3636 return volume , errors .New ("invalid empty volume spec" )
3737 case 1 , 2 :
3838 volume .Target = spec
39- volume .Type = string ( types .VolumeTypeVolume )
39+ volume .Type = types .VolumeTypeVolume
4040 return volume , nil
4141 }
4242
43- buffer := []rune {}
43+ var buffer []rune
4444 for _ , char := range spec + string (endOfSpec ) {
4545 switch {
4646 case isWindowsDrive (buffer , char ):
@@ -50,7 +50,7 @@ func ParseVolume(spec string) (types.ServiceVolumeConfig, error) {
5050 populateType (& volume )
5151 return volume , errors .Wrapf (err , "invalid spec: %s" , spec )
5252 }
53- buffer = [] rune {}
53+ buffer = nil
5454 default :
5555 buffer = append (buffer , char )
5656 }
You can’t perform that action at this time.
0 commit comments