lib/automateit/plugin/manager.rb in automateit-0.70923 vs lib/automateit/plugin/manager.rb in automateit-0.70928
- old
+ new
@@ -36,15 +36,11 @@
# List of aliased methods for this manager, populated by ::alias_methods.
class_inheritable_accessor :aliased_methods
# Methods to alias into the Interpreter, specified as an array of symbols.
def self.alias_methods(*methods)
- if methods.empty?
- self.aliased_methods
- else
- self.aliased_methods ||= Set.new
- self.aliased_methods.merge(methods.flatten)
- end
+ self.aliased_methods ||= Set.new
+ self.aliased_methods.merge(methods.flatten)
end
# Drivers for this manager as a hash of driver tokens to driver
# instances.
attr_accessor :drivers