Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmds/core/hexdump: use constants and os.WriteFile #2651

Merged
merged 3 commits into from
Apr 11, 2023

Conversation

rminnich
Copy link
Member

The code was writing the file but not closing it, which could be trouble on some systems.

The string of all letters was used more than once; make it a const.

go test and tinygo test now both work, once #3646 WIP: fix else/defer bug goes in to tinygo.

@rminnich rminnich requested review from binjip978, llogen and a team April 10, 2023 14:41
@rminnich rminnich added the Awaiting reviewer Waiting for a reviewer. label Apr 10, 2023
cmds/core/hexdump/hexdump_test.go Outdated Show resolved Hide resolved
cmds/core/hexdump/hexdump_test.go Outdated Show resolved Hide resolved
cmds/core/hexdump/hexdump_test.go Outdated Show resolved Hide resolved
cmds/core/hexdump/hexdump_test.go Show resolved Hide resolved
rminnichcodeu and others added 2 commits April 10, 2023 14:05
The code was writing the file but not closing it, which
could be trouble on some systems.

The string of all letters was used more than once; make it a const.

go test and tinygo test now both work, once #3646 WIP: fix else/defer bug
goes in to tinygo.

Signed-off-by: Ronald G. Minnich <rminnich@google.com>
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
@rminnich
Copy link
Member Author

tinygo-org/tinygo#3648 filed.

@rminnich rminnich added the automerge Applying this label auto-merges the PR when ready label Apr 11, 2023
@andrewsun2898 andrewsun2898 merged commit e0b0d73 into u-root:main Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Applying this label auto-merges the PR when ready Awaiting reviewer Waiting for a reviewer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants