Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
changluyi committed Aug 25, 2023
1 parent 98b78a5 commit 3be96fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,10 @@ lint:
@GOOS=linux go vet ./...
@GOOS=linux gosec -exclude=G204,G306,G404,G601,G301 -exclude-dir=test -exclude-dir=pkg/client ./...

.PHONY: gofumpt
gofumpt: gofumpt
find . -name "*.go" -execdir gofumpt -w -extra {}\;

.PHONY: lint-windows
lint-windows:
@GOOS=windows go vet ./cmd/windows/...
Expand Down
2 changes: 1 addition & 1 deletion pkg/daemon/handler_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func createShortSharedDir(pod *v1.Pod, volumeName, kubeletDir string) (err error
mask := syscall.Umask(0)
defer syscall.Umask(mask)
if _, err = os.Stat(newSharedDir); os.IsNotExist(err) {
err = os.MkdirAll(newSharedDir, 0o777)
err = os.MkdirAll(newSharedDir, 0777)

Check failure on line 45 in pkg/daemon/handler_linux.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofumpt`-ed with `-extra` (gofumpt)
if err != nil {
return fmt.Errorf("createSharedDir: Failed to create dir (%s): %v", newSharedDir, err)
}
Expand Down

0 comments on commit 3be96fc

Please sign in to comment.