summaryrefslogtreecommitdiff
path: root/app/models/blob.rb
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-12 09:50:54 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-12 09:50:54 +0100
commit0453d6d7ae72f0179d02ff5190122a86e304e1bb (patch)
tree7476883462fc6aa2e572b9d274acf2eda8f119f7 /app/models/blob.rb
parent6d2db33de43f20c314bee558919c1859e6f54d4a (diff)
downloadgitlab-ce-0453d6d7ae72f0179d02ff5190122a86e304e1bb.tar.gz
BE review changes
Diffstat (limited to 'app/models/blob.rb')
-rw-r--r--app/models/blob.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/blob.rb b/app/models/blob.rb
index 91cf171a688..82333b6f369 100644
--- a/app/models/blob.rb
+++ b/app/models/blob.rb
@@ -63,7 +63,7 @@ class Blob < SimpleDelegator
end
def balsamiq?
- binary? && extname.downcase.delete('.') == 'bmpr'
+ binary? && extension == 'bmpr'
end
def stl?