lib/skippy/installer.rb in skippy-0.4.3.a vs lib/skippy/installer.rb in skippy-0.5.0.a
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'skippy/lib_source'
require 'skippy/library'
require 'skippy/project'
class Skippy::LibraryInstaller
@@ -26,10 +28,10 @@
private
# @param [Symbol] type
# @param [String] message
def status(type, message)
- @messager.call(type, message) if @messager
+ @messager&.call(type, message)
end
# @param [String] message
def info(message)
status(:info, message)