Skip to content

Commit

Permalink
fixing nil bug found on the code review - fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap committed Oct 25, 2011
1 parent 025a95e commit 371d68d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/models/glue/candlepin/pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def find_by_organization_and_id(organization, pool_id)
module InstanceMethods

def initialize(attrs = nil)
if not attrs.nil? or attrs.member? 'id'
if not attrs.nil? and attrs.member? 'id'
# initializing from candlepin json
@productName = attrs["productName"]
@startDate = attrs["startDate"]
Expand Down

0 comments on commit 371d68d

Please sign in to comment.