Skip to content

Commit 11be7c3

Browse files
committed
Merge pull request #769 from iamstolis/image-duplicate-calls
Removing redundant duplicate calls.
2 parents a297c79 + 6b38d3b commit 11be7c3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Image.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ Image::Initialize(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE target) {
4343
ctor->InstanceTemplate()->SetInternalFieldCount(1);
4444
ctor->SetClassName(Nan::New("Image").ToLocalChecked());
4545

46-
ctor->InstanceTemplate()->SetInternalFieldCount(1);
47-
ctor->SetClassName(Nan::New("Image").ToLocalChecked());
48-
4946
// Prototype
5047
Local<ObjectTemplate> proto = ctor->PrototypeTemplate();
5148
Nan::SetAccessor(proto, Nan::New("source").ToLocalChecked(), GetSource, SetSource);

0 commit comments

Comments
 (0)