Corrected source code formatting.

This commit is contained in:
Sebastian Ludwig 2016-11-22 22:24:13 +01:00
parent 9034da11e2
commit 9dcc909335

View file

@ -18,14 +18,12 @@ module Twine
end
def determine_language_given_path(path)
path_arr = path.split(File::SEPARATOR)
path_arr.each do |segment|
match = /(..)\.po$/.match(segment)
if match
return match[1]
end
end
path_arr = path.split(File::SEPARATOR)
path_arr.each do |segment|
match = /(..)\.po$/.match(segment)
return match[1] if match
end
return
end