mirror of
https://github.com/S2-/securerandomstring.git
synced 2025-08-02 18:30:04 +02:00
whitespace and ;
This commit is contained in:
@@ -12,12 +12,10 @@ function srs(options, cb) {
|
||||
// async path
|
||||
if (cb) {
|
||||
crypto.randomBytes(length, function(err, buf) {
|
||||
if (err) {
|
||||
return cb(err)
|
||||
}
|
||||
else {
|
||||
return cb(null,_finish(buf));
|
||||
}
|
||||
if (err) {
|
||||
return cb(err);
|
||||
}
|
||||
return cb(null,_finish(buf));
|
||||
});
|
||||
}
|
||||
// sync path
|
||||
|
Reference in New Issue
Block a user