[Pkg-javascript-commits] [node-diffie-hellman] 49/88: browser: consistent indentation

Bastien Roucariès rouca at moszumanska.debian.org
Thu May 4 10:19:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-diffie-hellman.

commit b0dcb0610ae831a6e711e6ab1bd9a7cb75378d22
Author: Daniel Cousens <dcousens at users.noreply.github.com>
Date:   Wed Jan 28 00:01:59 2015 +1100

    browser: consistent indentation
---
 browser.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/browser.js b/browser.js
index 414eeaf..12d0830 100644
--- a/browser.js
+++ b/browser.js
@@ -7,7 +7,7 @@ function getDiffieHellman(mod) {
   var prime = new Buffer(primes[mod].prime, 'hex');
   var gen = new Buffer(primes[mod].gen, 'hex');
 
-	return new DH(prime, gen);
+  return new DH(prime, gen);
 }
 
 function createDiffieHellman(prime, enc, generator, genc) {
@@ -16,23 +16,23 @@ function createDiffieHellman(prime, enc, generator, genc) {
 		generator = enc;
 		enc = undefined;
 	}
-
+	
 	enc = enc || 'binary';
 	genc = genc || 'binary';
 	generator = generator || new Buffer([2]);
-
+	
 	if (!Buffer.isBuffer(generator)) {
 		generator = new Buffer(generator, genc);
 	}
-
+	
 	if (typeof prime === 'number') {
 		return new DH(generatePrime(prime, generator), generator, true);
 	}
-
+	
 	if (!Buffer.isBuffer(prime)) {
 		prime = new Buffer(prime, enc);
 	}
-
+	
 	return new DH(prime, generator, true);
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-diffie-hellman.git



More information about the Pkg-javascript-commits mailing list