Remove duplicate validation from resize background

This commit is contained in:
Lovell Fuller 2019-10-26 23:13:12 +01:00
parent 2f2276e091
commit efb3523eaa

View File

@ -246,9 +246,7 @@ function resize (width, height, options) {
} }
} }
// Background // Background
if (is.defined(options.background)) {
this._setBackgroundColourOption('resizeBackground', options.background); this._setBackgroundColourOption('resizeBackground', options.background);
}
// Kernel // Kernel
if (is.defined(options.kernel)) { if (is.defined(options.kernel)) {
if (is.string(kernel[options.kernel])) { if (is.string(kernel[options.kernel])) {