Skip to content

Commit d89115b

Browse files
revert accidentally deleted line
1 parent 13ff006 commit d89115b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cc/modules/imgproc/imgproc.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ NAN_METHOD(Imgproc::CalcHist) {
123123
ranges.push_back(new float[dims]);
124124
FF_OBJ jsAxis = FF_CAST_OBJ(jsHistAxes->Get(i));
125125
FF_ARR jsRanges;
126-
127-
if (!jsRanges->Length() == 2) {
126+
FF_GET_ARRAY_REQUIRED(jsAxis, jsRanges, "ranges");
127+
if (jsRanges->Length() != 2) {
128128
return Nan::ThrowError(FF_NEW_STRING("expected ranges to be an array of length " + std::to_string(2)));
129129
}
130130
ranges.at(i)[0] = jsRanges->Get(0)->NumberValue();

0 commit comments

Comments
 (0)