Skip to content

Commit

Permalink
Use consistent naming
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Aug 28, 2020
1 parent 62b4395 commit 278c9e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/magick-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,8 @@ export class MagickImage extends NativeInstance {
const geometry = typeof widthOrGeometry === 'number' ? new MagickGeometry(widthOrGeometry, height as number) : widthOrGeometry;
Exception.use(exception => {
_withString(geometry.toString(), geometryPtr => {
const image = ImageMagick._api._MagickImage_Resize(this._instance, geometryPtr, exception.ptr);
this._setInstance(image, exception);
const instance = ImageMagick._api._MagickImage_Resize(this._instance, geometryPtr, exception.ptr);
this._setInstance(instance, exception);
});
});
}
Expand Down

0 comments on commit 278c9e2

Please sign in to comment.