Skip to content

Commit 9d42b24

Browse files
committed
Minor cleanup
1 parent 2e0336e commit 9d42b24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/truffleruby.next-specs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spec/ruby/core/sizedqueue/pop_spec.rb
3131
spec/ruby/core/sizedqueue/shift_spec.rb
3232

3333
spec/ruby/core/module/refinements_spec.rb
34+
spec/ruby/core/module/undefined_instance_methods_spec.rb
3435
spec/ruby/core/refinement/refined_class_spec.rb
3536
spec/ruby/core/module/used_refinements_spec.rb
3637
spec/ruby/optional/capi/hash_spec.rb
37-
spec/ruby/core/module/undefined_instance_methods_spec.rb

src/main/java/org/truffleruby/core/module/ModuleNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2365,7 +2365,7 @@ protected RubyArray undefinedInstanceMethods(RubyModule module) {
23652365
List<RubySymbol> methodNames = new ArrayList<>();
23662366

23672367
for (InternalMethod methodEntry : module.fields.getMethods()) {
2368-
if (methodEntry != null && methodEntry.isUndefined()) {
2368+
if (methodEntry.isUndefined()) {
23692369
methodNames.add(getLanguage().getSymbol(methodEntry.getName()));
23702370
}
23712371
}

0 commit comments

Comments
 (0)