Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/twine.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSebastian Ludwig <sebastian@lurado.de>2016-11-23 00:24:13 +0300
committerSebastian Ludwig <sebastian@lurado.de>2016-12-08 12:21:37 +0300
commit9dcc909335d1a51534d9195ef2d1731d1fbc3489 (patch)
treecd3764d38eb4c916391712c34fb7aa2bf506135a /lib
parent9034da11e232a99067abd3489333344c4893b7e8 (diff)
Corrected source code formatting.
Diffstat (limited to 'lib')
-rw-r--r--lib/twine/formatters/django.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/twine/formatters/django.rb b/lib/twine/formatters/django.rb
index b722a10..67067c4 100644
--- a/lib/twine/formatters/django.rb
+++ b/lib/twine/formatters/django.rb
@@ -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