Skip to content

Commit

Permalink
Just use the if.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsynz committed Jul 11, 2011
1 parent 85a36b3 commit 08ecb73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/radiustar/packet.rb
Expand Up @@ -109,7 +109,9 @@ def unset_attribute(name)
end

def attribute(name)
@attributes[name] ? @attributes[name].value : nil
if @attributes[name]
@attributes[name].value
end
end

def unset_all_attributes
Expand Down

0 comments on commit 08ecb73

Please sign in to comment.