mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Remove duplicate validation from resize background
This commit is contained in:
parent
2f2276e091
commit
efb3523eaa
@ -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])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user