Skip to content

Commit 955d386

Browse files
committed
path lint fix
1 parent 4e2e2f2 commit 955d386

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

cmd/minikube/cmd/cp.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package cmd
1818

1919
import (
20-
"path"
2120
"path/filepath"
2221

2322
"github.com/pkg/errors"
@@ -102,14 +101,14 @@ func setDstFileNameFromSrc(dst, src string) string {
102101
var dd, df, sf string
103102
switch {
104103
case guestToHost:
105-
_, sf = path.Split(src)
104+
_, sf = pt.Split(src)
106105
dd, df = filepath.Split(dst)
107106
case guestToGuest:
108-
_, sf = path.Split(src)
109-
dd, df = path.Split(dst)
107+
_, sf = pt.Split(src)
108+
dd, df = pt.Split(dst)
110109
default:
111110
_, sf = filepath.Split(src)
112-
dd, df = path.Split(dst)
111+
dd, df = pt.Split(dst)
113112
}
114113

115114
// if dst is empty, dd and df will be empty, so return dst
@@ -133,7 +132,7 @@ func setDstFileNameFromSrc(dst, src string) string {
133132
return filepath.Join(dd, sf)
134133
}
135134

136-
return path.Join(dd, sf)
135+
return pt.Join(dd, sf)
137136
}
138137

139138
// split path to node name and file path

0 commit comments

Comments
 (0)