From b70bdaa26b0d23d4774b0f96976da92c4f18ad81 Mon Sep 17 00:00:00 2001 From: Patrick Mooney Date: Tue, 29 Jul 2014 10:21:57 -0500 Subject: [PATCH] Cleanup lint/cruft --- bin/ldapjs-add | 10 +--------- test/client.test.js | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/bin/ldapjs-add b/bin/ldapjs-add index a3f5174..f1fe6f6 100755 --- a/bin/ldapjs-add +++ b/bin/ldapjs-add @@ -159,16 +159,8 @@ client.on('error', function (err) { }); client.bind(parsed.binddn, parsed.password, function (err, res) { - if (err) + if (err) { perror(err); - - var finished = 0; - function callback(err) { - if (err) - perror(err); - - if (++finished === parsed.file.length) - client.unbind(function () { return; }); } vasync.forEachPipeline({ diff --git a/test/client.test.js b/test/client.test.js index b9fcab1..788e68a 100644 --- a/test/client.test.js +++ b/test/client.test.js @@ -656,7 +656,7 @@ test('search paged', function (t) { t.test('paged - redundant control', function (t2) { try { client.search(SUFFIX, { - paged: { pageSize: 100 }, + paged: { pageSize: 100 } }, new ldap.PagedResultsControl(), function (err, res) { t2.fail();