Skip to content

fix(filesystem): explicitly ignore Close() error on directory file descriptor - #3123

Merged
afjcjsbx merged 1 commit into
sipeed:mainfrom
chengzhichao-xydt:codex/filesystem-dirfile-close
Jun 14, 2026
Merged

fix(filesystem): explicitly ignore Close() error on directory file descriptor#3123
afjcjsbx merged 1 commit into
sipeed:mainfrom
chengzhichao-xydt:codex/filesystem-dirfile-close

Conversation

@chengzhichao-xydt

Copy link
Copy Markdown
Contributor

dirFile.Close() on a directory file descriptor completely discards the error. Added _ = to make the intentional discard explicit, matching the _ = dirFile.Sync() pattern on the preceding line.

Verification: go build ./pkg/tools/fs/... passes.

@afjcjsbx
afjcjsbx merged commit 5e415ed into sipeed:main Jun 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants