Lint/EmptyBlock
can have some "false positives"
#13354
-
e.g. using Ofc, in this case, there is the |
Beta Was this translation helpful? Give feedback.
Answered by
dvandersluis
Nov 20, 2024
Replies: 2 comments
-
... And it won't work if the file does not exist currently. But |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
stdedos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
File.open('a', 'w') { nil }
is accepted and more explicit IMO.