mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 22:57:11 -04:00
db/ReadOnlyManager: use jshint
This commit is contained in:
parent
928dfcb384
commit
d63b7cf188
1 changed files with 9 additions and 9 deletions
|
@ -39,7 +39,7 @@ exports.getReadOnlyId = function (padId, callback)
|
||||||
function(dbReadOnlyId, callback)
|
function(dbReadOnlyId, callback)
|
||||||
{
|
{
|
||||||
//there is no readOnly Entry in the database, let's create one
|
//there is no readOnly Entry in the database, let's create one
|
||||||
if(dbReadOnlyId == null)
|
if(!dbReadOnlyId)
|
||||||
{
|
{
|
||||||
readOnlyId = "r." + randomString(16);
|
readOnlyId = "r." + randomString(16);
|
||||||
|
|
||||||
|
@ -59,8 +59,8 @@ exports.getReadOnlyId = function (padId, callback)
|
||||||
if(ERR(err, callback)) return;
|
if(ERR(err, callback)) return;
|
||||||
//return the results
|
//return the results
|
||||||
callback(null, readOnlyId);
|
callback(null, readOnlyId);
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* returns a the padId for a read only id
|
* returns a the padId for a read only id
|
||||||
|
@ -69,7 +69,7 @@ exports.getReadOnlyId = function (padId, callback)
|
||||||
exports.getPadId = function(readOnlyId, callback)
|
exports.getPadId = function(readOnlyId, callback)
|
||||||
{
|
{
|
||||||
db.get("readonly2pad:" + readOnlyId, callback);
|
db.get("readonly2pad:" + readOnlyId, callback);
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates a random String with the given length. Is needed to generate the read only ids
|
* Generates a random String with the given length. Is needed to generate the read only ids
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue