Navigation Menu

Skip to content

Commit

Permalink
fix #399: faulty use of inline else
Browse files Browse the repository at this point in the history
by suggetion of @cscorley, typing out full if..else
  • Loading branch information
gauteh committed Feb 25, 2015
1 parent 13e0035 commit 7771780
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/sup/modes/thread_index_mode.rb
Expand Up @@ -1026,7 +1026,11 @@ def default_date_widget_for t
end

def from_width
[(buffer.content_width.to_f * 0.2).to_i, MIN_FROM_WIDTH].max if buffer else MIN_FROM_WIDTH # not sure why the buffer is gone
if buffer
[(buffer.content_width.to_f * 0.2).to_i, MIN_FROM_WIDTH].max
else
MIN_FROM_WIDTH # not sure why the buffer is gone
end
end

def initialize_threads
Expand Down

0 comments on commit 7771780

Please sign in to comment.