lib/danger/plugin_support/plugin.rb in danger-9.1.0 vs lib/danger/plugin_support/plugin.rb in danger-9.2.0
- old
+ new
@@ -16,10 +16,9 @@
undef :warn, :fail
# Since we have a reference to the Dangerfile containing all the information
# We need to redirect the self calls to the Dangerfile
- # rubocop:disable Style/MethodMissing
def method_missing(method_sym, *arguments, **keyword_arguments, &block)
if keyword_arguments.empty?
@dangerfile.send(method_sym, *arguments, &block)
else
@dangerfile.send(method_sym, *arguments, **keyword_arguments, &block)