Skip to content

Commit be83807

Browse files
committed
Convert indentation to spaces
1 parent 594428a commit be83807

3 files changed

Lines changed: 37 additions & 37 deletions

File tree

dist/bcrypt.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -202,18 +202,18 @@
202202
* @inner
203203
*/
204204
function safeStringCompare(known, unknown) {
205-
var right = 0,
206-
wrong = 0;
207-
for (var i=0, k=known.length; i<k; ++i) {
208-
if (known.charCodeAt(i) === unknown.charCodeAt(i))
209-
++right;
210-
else
211-
++wrong;
212-
}
213-
// Prevent removal of unused variables (never true, actually)
214-
if (right < 0)
215-
return false;
216-
return wrong === 0;
205+
var right = 0,
206+
wrong = 0;
207+
for (var i=0, k=known.length; i<k; ++i) {
208+
if (known.charCodeAt(i) === unknown.charCodeAt(i))
209+
++right;
210+
else
211+
++wrong;
212+
}
213+
// Prevent removal of unused variables (never true, actually)
214+
if (right < 0)
215+
return false;
216+
return wrong === 0;
217217
}
218218

219219
/**
@@ -250,14 +250,14 @@
250250
return;
251251
}
252252
if (hash.length !== 60) {
253-
nextTick(callback.bind(this, null, false));
254-
return;
253+
nextTick(callback.bind(this, null, false));
254+
return;
255255
}
256256
bcrypt.hash(s, hash.substr(0, 29), function(err, comp) {
257-
if (err)
258-
callback(err);
259-
else
260-
callback(null, safeStringCompare(comp, hash));
257+
if (err)
258+
callback(err);
259+
else
260+
callback(null, safeStringCompare(comp, hash));
261261
}, progressCallback);
262262
};
263263

0 commit comments

Comments
 (0)