Skip to content

Commit c32d1fd

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4478b82 commit c32d1fd

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

swesmith/bug_gen/procedural/ruby/nil_introduction.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,19 @@ def modify(self, code_entity: CodeEntity) -> BugRewrite:
4343
)
4444

4545

46-
_CONDITIONAL_CONTEXTS = frozenset({
47-
"if", "unless", "while", "until", "conditional",
48-
"if_modifier", "unless_modifier", "while_modifier", "until_modifier",
49-
})
46+
_CONDITIONAL_CONTEXTS = frozenset(
47+
{
48+
"if",
49+
"unless",
50+
"while",
51+
"until",
52+
"conditional",
53+
"if_modifier",
54+
"unless_modifier",
55+
"while_modifier",
56+
"until_modifier",
57+
}
58+
)
5059

5160

5261
class OrDefaultRemovalModifier(RubyProceduralModifier):

0 commit comments

Comments
 (0)