From efb3523eaafcf6f453422a46d95e03ee92b77d6a Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sat, 26 Oct 2019 23:13:12 +0100 Subject: [PATCH] Remove duplicate validation from resize background --- lib/resize.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/resize.js b/lib/resize.js index 1cc3fea9..93f0ca15 100644 --- a/lib/resize.js +++ b/lib/resize.js @@ -246,9 +246,7 @@ function resize (width, height, options) { } } // Background - if (is.defined(options.background)) { - this._setBackgroundColourOption('resizeBackground', options.background); - } + this._setBackgroundColourOption('resizeBackground', options.background); // Kernel if (is.defined(options.kernel)) { if (is.string(kernel[options.kernel])) {