mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 15:25:07 +01:00
Remove duplicate validation from resize background
This commit is contained in:
@@ -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])) {
|
||||
|
||||
Reference in New Issue
Block a user