Skip to content

Commit 3f1e621

Browse files
committed
fix lint issues
Signed-off-by: Avi Deitcher <avi@deitcher.net>
1 parent 7cf4e5b commit 3f1e621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/storage/smb/smb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func (s *SMB) exec(u url.URL, command func(fs *smb2.Share, sharepath string) err
144144
if port == "" {
145145
port = defaultSMBPort
146146
}
147-
host := fmt.Sprintf("%s:%s", hostname, port)
147+
host := net.JoinHostPort(hostname, port)
148148
share, sharepath := parseSMBPath(path)
149149
if s.username == "" && u.User != nil {
150150
username = u.User.Username()

0 commit comments

Comments
 (0)