Fix buffer warnings

This commit is contained in:
Girish Ramakrishnan
2019-03-21 20:06:14 -07:00
parent e9108ae3f8
commit 81b721be2b
4 changed files with 10 additions and 10 deletions

View File

@@ -97,9 +97,9 @@ function finalSend(results, req, res, next) {
var resultCookie;
if (last < max) {
resultCookie = new Buffer(last.toString());
resultCookie = Buffer.from(last.toString());
} else {
resultCookie = new Buffer('');
resultCookie = Buffer.from('');
}
res.controls.push(new ldap.PagedResultsControl({