In some cases the callback function equals undefined which doesn't equal null. Changing the === operator to == makes it check for both null as undefined.
This fixes the usage of migration.init(connection, __dirname + '/migrations'); where otherwise migration.init(connection, __dirname + '/migrations', function(){}); had to be used
In some cases the callback function equals undefined which doesn't equal
null
. Changing the===
operator to==
makes it check for bothnull
asundefined
.This fixes the usage of
migration.init(connection, __dirname + '/migrations');
where otherwisemigration.init(connection, __dirname + '/migrations', function(){});
had to be used