Skip to content

Commit 606224f

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# mysql backup image
2-
FROM golang:go1.24.2-alpine3.21 AS build
2+
FROM golang:1.24.2-alpine3.21 AS build
33

44
COPY . /src/mysql-backup
55
WORKDIR /src/mysql-backup

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)