use conditional assignment

patch bump
This commit is contained in:
2023-08-06 11:33:15 +01:00
parent 46bfb53db8
commit 515fa565d4
3 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ require "logger"
module OBSWS
module Logging
def logger
@logger = Logger.new($stdout, level: ENV.fetch("OBSWS_LOG_LEVEL", "WARN"))
@logger ||= Logger.new($stdout, level: ENV.fetch("OBSWS_LOG_LEVEL", "WARN"))
@logger.progname = instance_of?(::Module) ? name : self.class.name
@logger
end

View File

@@ -11,7 +11,7 @@ module OBSWS
end
def patch
1
2
end
def to_a