Remove needless code.

This `OK(())` should be propagated from `Element.set_attribute()`.
This commit is contained in:
Tetsuharu OHZEKI 2014-01-02 22:51:53 +09:00
parent 943ab4a4f0
commit 617a95ff5b

View file

@ -321,8 +321,7 @@ impl Element {
pub fn SetAttribute(&mut self, abstract_self: AbstractNode, name: DOMString, value: DOMString) pub fn SetAttribute(&mut self, abstract_self: AbstractNode, name: DOMString, value: DOMString)
-> ErrorResult { -> ErrorResult {
self.set_attr(abstract_self, name, value); self.set_attr(abstract_self, name, value)
Ok(())
} }
pub fn SetAttributeNS(&mut self, pub fn SetAttributeNS(&mut self,