cleanup: if !object.nil? -> if object
This commit is contained in:
parent
a1d022d0be
commit
c58585d445
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ class Conference < ActiveRecord::Base
|
||||||
def cfp_open?
|
def cfp_open?
|
||||||
today = Date.current
|
today = Date.current
|
||||||
cfp = self.call_for_paper
|
cfp = self.call_for_paper
|
||||||
if !cfp.nil? && (cfp.start_date.. cfp.end_date).cover?(today)
|
if cfp && (cfp.start_date.. cfp.end_date).cover?(today)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue