Skip to content

Commit

Permalink
Simplified an if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
CedricFinance committed May 22, 2011
1 parent 4a0aa5b commit 4ca53a7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tvrenamer.rb
Expand Up @@ -350,11 +350,9 @@ def get_details(file, refresh)
return nil if episode_number.to_i > 99

if @@series[show_name][language].nil?
@@series[show_name][language] = Series.new show_name, refresh, language
series = @@series[show_name][language]
else
series = @@series[show_name][language]
@@series[show_name][language] = Series.new(show_name, refresh, language)
end
series = @@series[show_name][language]
return nil if series.episodes.size < 1

begin
Expand Down

0 comments on commit 4ca53a7

Please sign in to comment.