db/PadManager.js: renamed doesPadExists() -> doesPadExist()
Removed the 's' for consistency with the other `doesFooExist()` manager calls. Retained an alias for plugins that might be using it.
This commit is contained in:
parent
a875ca6c30
commit
bf9e3f92b5
1 changed files with 4 additions and 1 deletions
|
@ -188,7 +188,7 @@ exports.listAllPads = thenify(function(cb)
|
|||
});
|
||||
|
||||
// checks if a pad exists
|
||||
exports.doesPadExists = thenify(function(padId, callback)
|
||||
exports.doesPadExist = thenify(function(padId, callback)
|
||||
{
|
||||
db.get("pad:" + padId, function(err, value) {
|
||||
if (ERR(err, callback)) return;
|
||||
|
@ -201,6 +201,9 @@ exports.doesPadExists = thenify(function(padId, callback)
|
|||
});
|
||||
});
|
||||
|
||||
// alias for backwards compatibility
|
||||
exports.doesPadExists = exports.doesPadExist;
|
||||
|
||||
// returns a sanitized padId, respecting legacy pad id formats
|
||||
function sanitizePadId(padId, callback) {
|
||||
var transform_index = arguments[2] || 0;
|
||||
|
|
Loading…
Reference in a new issue