Corrected source code formatting.
This commit is contained in:
parent
9034da11e2
commit
9dcc909335
1 changed files with 6 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Reference in a new issue