Skip to content

Commit

Permalink
Fix loop index
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Rudenko committed Mar 17, 2017
1 parent 9a354c6 commit 480c02f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions darknet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class VideoDetectionWorker : public AsyncProgressWorkerBase<T> {
obj->Set(Nan::New("prob").ToLocalChecked(), Nan::New<v8::Number>(result.prob));
obj->Set(Nan::New("name").ToLocalChecked(), Nan::New<v8::String>(result.name).ToLocalChecked());
results->Set(i, obj);
i++;
}

v8::Local<v8::Object> dimensions = Nan::New<v8::Object>();
Expand Down Expand Up @@ -84,7 +83,6 @@ class ImageDetectionWorker : public AsyncWorker {
obj->Set(Nan::New("prob").ToLocalChecked(), Nan::New<v8::Number>(result.prob));
obj->Set(Nan::New("name").ToLocalChecked(), Nan::New<v8::String>(result.name).ToLocalChecked());
results->Set(i, obj);
i++;
}

v8::Local<v8::Object> dimensions = Nan::New<v8::Object>();
Expand Down

0 comments on commit 480c02f

Please sign in to comment.