Skip to content

Commit

Permalink
Convert if nested inside else to elsif
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jan 19, 2016
1 parent c3e897e commit c6ebbfd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/t/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,10 @@ def does_follow(user1, user2 = nil)
end
thread2 = if user2.nil?
Thread.new { @rcfile.active_profile[0] }
elsif options['id']
Thread.new { client.user(user2.to_i).screen_name }
else
if options['id']
Thread.new { client.user(user2.to_i).screen_name }
else
Thread.new { user2.strip_ats }
end
Thread.new { user2.strip_ats }
end
user1 = thread1.value
user2 = thread2.value
Expand Down

0 comments on commit c6ebbfd

Please sign in to comment.