chore(util/CompatibilityUtil): correct spacing and simplify warning

This commit is contained in:
Nico Rehwaldt 2020-05-13 11:42:25 +02:00 committed by fake-join[bot]
parent f3edfd0f0d
commit c40ebf558a
1 changed files with 2 additions and 2 deletions

View File

@ -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);