Skip to content

Commit 4143bc7

Browse files
committed
fix staticcheck errors in pkg/volume/hostpath.
Signed-off-by: Sakura <[email protected]>
1 parent 50437b4 commit 4143bc7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

hack/.staticcheck_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ pkg/volume/emptydir
4848
pkg/volume/fc
4949
pkg/volume/flexvolume
5050
pkg/volume/flocker
51-
pkg/volume/hostpath
5251
pkg/volume/iscsi
5352
pkg/volume/local
5453
pkg/volume/portworx

pkg/volume/hostpath/host_path_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,10 @@ func setUp() error {
327327
}
328328

329329
f, err := os.OpenFile("/tmp/ExistingFolder/foo", os.O_CREATE, os.FileMode(0644))
330-
defer f.Close()
331330
if err != nil {
332331
return err
333332
}
333+
defer f.Close()
334334

335335
return nil
336336
}

0 commit comments

Comments
 (0)