chore(util/CompatibilityUtil): correct spacing and simplify warning
This commit is contained in:
parent
f3edfd0f0d
commit
c40ebf558a
|
@ -25,7 +25,7 @@ export function wrapForCompatibility(api) {
|
||||||
|
|
||||||
console.warn(new Error(
|
console.warn(new Error(
|
||||||
'Passing callbacks to ' + api.name + ' is deprecated and will be removed in a future major release. ' +
|
'Passing callbacks to ' + api.name + ' is deprecated and will be removed in a future major release. ' +
|
||||||
'Please switch to promises, cf. https://bpmn.io/l/moving-to-promises.html'
|
'Please switch to promises: https://bpmn.io/l/moving-to-promises.html'
|
||||||
));
|
));
|
||||||
|
|
||||||
var argsWithoutCallback = Array.prototype.slice.call(arguments, 0, -1);
|
var argsWithoutCallback = Array.prototype.slice.call(arguments, 0, -1);
|
||||||
|
|
Loading…
Reference in New Issue