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

rm: reduce nesting in prompt_file #5345

Closed
tertsdiepraam opened this issue Oct 1, 2023 · 3 comments · Fixed by #5356
Closed

rm: reduce nesting in prompt_file #5345

tertsdiepraam opened this issue Oct 1, 2023 · 3 comments · Fixed by #5356
Labels

Comments

@tertsdiepraam
Copy link
Member

tertsdiepraam commented Oct 1, 2023

prompt_file is more complicated than it needs to be and can be cleaned up with some early returns and maybe with let-else. The behaviour should stay the same, but it needs to be cleaned up!

Note: There's more functions with a lot of nesting, I've cleaned those up already in #5344

@terade
Copy link
Contributor

terade commented Oct 4, 2023

Hello, I would like to work on this issue. Unfortunately I am inexperienced so I am sorry if I create additional work.

@cakebaker
Copy link
Contributor

@terade sure, go ahead :)

@tertsdiepraam
Copy link
Member Author

No worries, go ahead!

terade added a commit to terade/coreutils that referenced this issue Oct 4, 2023
@cakebaker cakebaker linked a pull request Oct 4, 2023 that will close this issue
terade added a commit to terade/coreutils that referenced this issue Oct 5, 2023
Addressing issue uutils#5345.
Introduce new helper function: prompt_file_permission_read_only
cakebaker added a commit that referenced this issue Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants