diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-21 13:22:04 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-27 12:23:26 -0500 |
commit | c69a0779fb499fb3c8352eede0b5c6d7bb1117d1 (patch) | |
tree | 99e84300670eb85e7b414fc6f6891d3779f69b4e /app/models/blob.rb | |
parent | fed9dcd9ed2f064e887332b4e45f2e65465e74c0 (diff) | |
download | gitlab-ce-c69a0779fb499fb3c8352eede0b5c6d7bb1117d1.tar.gz |
Address feedback
Diffstat (limited to 'app/models/blob.rb')
-rw-r--r-- | app/models/blob.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/models/blob.rb b/app/models/blob.rb index 1bb9ed03c11..65356f01cc2 100644 --- a/app/models/blob.rb +++ b/app/models/blob.rb @@ -107,11 +107,9 @@ class Blob < SimpleDelegator end def rich_viewer_class - if invalid_lfs_pointer? || empty? - nil - else - rich_viewers_classes.find { |viewer_class| viewer_class.can_render?(self) } - end + return if invalid_lfs_pointer? || empty? + + rich_viewers_classes.find { |viewer_class| viewer_class.can_render?(self) } end def simple_viewer |