callback can be null

This commit is contained in:
Girish Ramakrishnan
2015-10-15 12:06:38 -07:00
parent 6b82fb9ddb
commit 23fc4bec36
+1 -1
View File
@@ -47,7 +47,7 @@ function cleanupExpiredAuthCodes(callback) {
}
function cleanupTokens(callback) {
assert.strictEqual(typeof callback, 'function');
assert(!callback || typeof callback === 'function'); // callback is null when called from cronjob
debug('Cleaning up expired tokens');