Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle committed Aug 16, 2017
1 parent 49b6cdf commit f960289
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
config.future_release = Mixlib::Log::VERSION
config.enhancement_labels = "enhancement,Enhancement,New Feature,Feature".split(",")
config.bug_labels = "bug,Bug,Improvement,Upstream Bug".split(",")
config.exclude_labels = "duplicate,question,invalid,wontfix,no_changelog,Exclude From Changelog,Question,Discussion".split(",")
config.exclude_labels = ["duplicate", "question", "invalid", "wontfix",
"no_changelog", "Exclude From Changelog", "Question", "Discussion"]
end
6 changes: 3 additions & 3 deletions lib/mixlib/log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ module Mixlib
module Log
@logger, @loggers = nil

LEVELS = { debug: Logger::DEBUG, info: Logger::INFO, warn: Logger::WARN, error: Logger::ERROR, fatal: Logger::FATAL }.freeze
LEVELS = { debug: Logger::DEBUG, info: Logger::INFO,
warn: Logger::WARN, error: Logger::ERROR, fatal: Logger::FATAL }.freeze
LEVEL_NAMES = LEVELS.invert.freeze

def reset!
Expand Down Expand Up @@ -62,9 +63,8 @@ def use_log_devices(other)
@loggers = other
@logger = other.first
else
msg = "#use_log_devices takes a Mixlib::Log object or array of log devices. " \
raise ArgumentError, "#use_log_devices takes a Mixlib::Log object or array of log devices. " \
"You gave: #{other.inspect}"
raise ArgumentError, msg
end
@configured = true
end
Expand Down

0 comments on commit f960289

Please sign in to comment.