Skip to content

Commit 400b688

Browse files
committed
chore: golangci-lint fixes
1 parent c01a14d commit 400b688

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: golangci-lint
3737
uses: golangci/golangci-lint-action@v6
3838
with:
39-
version: v1.61.0
39+
version: v1.64.5
4040
only-new-issues: true
4141
build:
4242
name: Build

libvirt/uri/ssh.go

+4-6
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,10 @@ func (u *ConnectionURI) dialHost(target string, sshcfg *ssh_config.Config, depth
212212

213213
if knownHostsVerify == "ignore" {
214214
skipVerify = true
215-
} else {
216-
if sshcfg != nil {
217-
strictCheck, err := sshcfg.Get(target, "StrictHostKeyChecking")
218-
if err != nil && strictCheck == "yes" {
219-
skipVerify = false
220-
}
215+
} else if sshcfg != nil {
216+
strictCheck, err := sshcfg.Get(target, "StrictHostKeyChecking")
217+
if err != nil && strictCheck == "yes" {
218+
skipVerify = false
221219
}
222220
}
223221

0 commit comments

Comments
 (0)