Fix Warnings When Running Rake Test

This commit is contained in:
Daniel Levy 2018-12-03 13:29:44 -08:00
parent b0474a6f87
commit 97106cdd1f
4 changed files with 3 additions and 4 deletions

View file

@ -18,7 +18,6 @@ module Twine
key_regex = /msgid *"(.*)"$/
value_regex = /msgstr *"(.*)"$/m
last_comment = nil
while line = io.gets
comment_match = comment_regex.match(line)
if comment_match

View file

@ -41,7 +41,7 @@ module Twine
def format_sections(twine_file, lang)
sections = twine_file.sections.map { |section| format_section(section, lang) }
sections.delete_if &:empty?
sections.delete_if(&:empty?)
sections.join(",\n\n")
end

View file

@ -57,7 +57,7 @@ module Twine
end
def join_path *paths
File.expand_path File.join *paths
File.expand_path File.join(*paths)
end
end
end

View file

@ -299,7 +299,7 @@ module Twine
end
def find_formatter(&block)
formatters = Formatters.formatters.select &block
formatters = Formatters.formatters.select(&block)
if formatters.empty?
return nil
elsif formatters.size > 1