Skip to content

Comments

Remove unnecessary variable checks#581

Merged
ko1 merged 1 commit intoruby:masterfrom
st0012:remove-unnecessary-checks
Mar 25, 2022
Merged

Remove unnecessary variable checks#581
ko1 merged 1 commit intoruby:masterfrom
st0012:remove-unnecessary-checks

Conversation

@st0012
Copy link
Member

@st0012 st0012 commented Mar 24, 2022

I hope I don't misunderstand the intention, but since both instance_variable_get and local_variable_get raises NameError when the variable is not defined, manually raising them seem redundant.

Since both instance_variable_get and local_variable_get raises NameError
when the variable is not defined, manually raising them seem redundant.
@st0012 st0012 force-pushed the remove-unnecessary-checks branch from a912157 to f937bae Compare March 24, 2022 22:17
@ko1 ko1 merged commit aba1b05 into ruby:master Mar 25, 2022
@st0012 st0012 deleted the remove-unnecessary-checks branch March 25, 2022 21:16
@st0012 st0012 mentioned this pull request Mar 25, 2022
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