Skip to content

Commit

Permalink
Remove superfluous call to arg->ToObject()
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Sep 19, 2010
1 parent 2709ac1 commit d19822d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iconv.cc
Expand Up @@ -105,9 +105,9 @@ Handle<Value> Iconv::Convert(const Arguments& args) {
}

if (arg->IsObject()) {
Handle<Value> object = arg->ToObject();
Local<Object> object = arg->ToObject();
if (Buffer::HasInstance(object)) {
Buffer& buffer = *ObjectWrap::Unwrap<Buffer>(arg->ToObject());
Buffer& buffer = *ObjectWrap::Unwrap<Buffer>(object);
return self->Convert(buffer.data(), buffer.length());
}
}
Expand Down

0 comments on commit d19822d

Please sign in to comment.