Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jun 2, 2019
1 parent 1640a19 commit b9fe4ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compress.cc
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ void compressParse(const Nan::FunctionCallbackInfo<Value>& info, bool async) {
qualityObject = options->Get(New("quality").ToLocalChecked());
if (!qualityObject->IsUndefined())
{
tmpMaybe = Nan::To<uint32_t>(strideObject);
if (tmpMaybe.IsNothing() || tmpMaybe.FromJust() > 100)
tmpMaybe = Nan::To<uint32_t>(qualityObject);
if (tmpMaybe.IsNothing() || tmpMaybe.FromJust() > 100u)
{
_throw("Invalid quality value");
}
Expand Down

0 comments on commit b9fe4ff

Please sign in to comment.