Don't whinge about missing attributes

This commit is contained in:
Patrick J Cherry
2014-08-26 16:31:34 +01:00
parent a8ad8c1e09
commit 617129b707

View File

@@ -187,7 +187,7 @@ module Netlink
warn "Duplicate attribute #{name} (#{code}): #{attrs[name].inspect} -> #{val.inspect}" if attrs[name] warn "Duplicate attribute #{name} (#{code}): #{attrs[name].inspect} -> #{val.inspect}" if attrs[name]
attrs[name] = val attrs[name] = val
else else
warn "Unknown attribute #{code}, in class #{self}, value #{val.inspect}" warn "Unknown attribute #{code}, in class #{self}, value #{val.inspect}" if $DEBUG
attrs[code] = val attrs[code] = val
end end
end end