From 7c21f7540ce74851f571353c3a955e553c374221 Mon Sep 17 00:00:00 2001
From: Lloyd Hilaiel <lloyd@hilaiel.com>
Date: Thu, 15 Dec 2011 09:25:56 -0700
Subject: [PATCH] remove trailing whitespace from all files.  closes #758

---
 bin/load_gen                            | 2 +-
 lib/bcrypt.js                           | 2 +-
 lib/db.js                               | 2 +-
 lib/keysigner/keysigner-compute.js      | 2 +-
 lib/load_gen/activities/include_only.js | 2 +-
 lib/load_gen/activities/reset_pass.js   | 2 +-
 lib/load_gen/activities/signup.js       | 2 +-
 lib/load_gen/user_db.js                 | 2 +-
 lib/secrets.js                          | 2 +-
 lib/statsd.js                           | 2 +-
 lib/wsapi.js                            | 4 ++--
 scripts/hash_password.js                | 2 +-
 scripts/merge_train.sh                  | 2 +-
 scripts/serve_example.js                | 2 +-
 14 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/bin/load_gen b/bin/load_gen
index c3e14e315..513353340 100755
--- a/bin/load_gen
+++ b/bin/load_gen
@@ -93,7 +93,7 @@ var completed = {
 };
 
 // how many activies does an active user undertake per second
-const activitiesPerUserPerSecond = (40.0 / ( 24 * 60 * 60 )); 
+const activitiesPerUserPerSecond = (40.0 / ( 24 * 60 * 60 ));
 
 // activities
 var activity = {
diff --git a/lib/bcrypt.js b/lib/bcrypt.js
index 704aea87a..a9c679b61 100644
--- a/lib/bcrypt.js
+++ b/lib/bcrypt.js
@@ -48,4 +48,4 @@ exports.shutdown = function() {
     cc.exit();
     cc = undefined;
   }
-};
\ No newline at end of file
+};
diff --git a/lib/db.js b/lib/db.js
index e71702961..2cd53f6fb 100644
--- a/lib/db.js
+++ b/lib/db.js
@@ -144,4 +144,4 @@ exports.addTestUser = function() {
   // would we like to check the environment here?
   checkReady();
   driver['addTestUser'].apply(undefined, arguments);
-};
\ No newline at end of file
+};
diff --git a/lib/keysigner/keysigner-compute.js b/lib/keysigner/keysigner-compute.js
index 3f0f108a1..5226dab15 100644
--- a/lib/keysigner/keysigner-compute.js
+++ b/lib/keysigner/keysigner-compute.js
@@ -6,7 +6,7 @@ process.on('message', function(m) {
   try {
     // parse the pubkey
     var pk = ca.parsePublicKey(m.pubkey);
-    
+
     // same account, we certify the key
     // we certify it for a day for now
     var expiration = new Date();
diff --git a/lib/load_gen/activities/include_only.js b/lib/load_gen/activities/include_only.js
index a8aa5805b..379e0dfed 100644
--- a/lib/load_gen/activities/include_only.js
+++ b/lib/load_gen/activities/include_only.js
@@ -18,7 +18,7 @@
  * the Initial Developer. All Rights Reserved.
  *
  * Contributor(s):
- *   Lloyd Hilaiel <lloyd@hilaiel.com> 
+ *   Lloyd Hilaiel <lloyd@hilaiel.com>
  *
  * Alternatively, the contents of this file may be used under the terms of
  * either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/lib/load_gen/activities/reset_pass.js b/lib/load_gen/activities/reset_pass.js
index e051eca16..ae8a9d8c5 100644
--- a/lib/load_gen/activities/reset_pass.js
+++ b/lib/load_gen/activities/reset_pass.js
@@ -18,7 +18,7 @@
  * the Initial Developer. All Rights Reserved.
  *
  * Contributor(s):
- *   Lloyd Hilaiel <lloyd@hilaiel.com> 
+ *   Lloyd Hilaiel <lloyd@hilaiel.com>
  *
  * Alternatively, the contents of this file may be used under the terms of
  * either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/lib/load_gen/activities/signup.js b/lib/load_gen/activities/signup.js
index 0ea44f1c2..60270fd31 100644
--- a/lib/load_gen/activities/signup.js
+++ b/lib/load_gen/activities/signup.js
@@ -18,7 +18,7 @@
  * the Initial Developer. All Rights Reserved.
  *
  * Contributor(s):
- *   Lloyd Hilaiel <lloyd@hilaiel.com> 
+ *   Lloyd Hilaiel <lloyd@hilaiel.com>
  *
  * Alternatively, the contents of this file may be used under the terms of
  * either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/lib/load_gen/user_db.js b/lib/load_gen/user_db.js
index 436ae63ef..247100a0c 100644
--- a/lib/load_gen/user_db.js
+++ b/lib/load_gen/user_db.js
@@ -18,7 +18,7 @@
  * the Initial Developer. All Rights Reserved.
  *
  * Contributor(s):
- *   Lloyd Hilaiel <lloyd@hilaiel.com> 
+ *   Lloyd Hilaiel <lloyd@hilaiel.com>
  *
  * Alternatively, the contents of this file may be used under the terms of
  * either the GNU General Public License Version 2 or later (the "GPL"), or
diff --git a/lib/secrets.js b/lib/secrets.js
index 41b8d4952..8ba989a25 100644
--- a/lib/secrets.js
+++ b/lib/secrets.js
@@ -61,7 +61,7 @@ exports.generate = function(chars) {
   for (var i=0; i < chars; i++) {
     str += alphabet.charAt(bytes[i] % alphabet.length);
   }
-  
+
   return str;
 }
 
diff --git a/lib/statsd.js b/lib/statsd.js
index 029327e53..dc77b97ce 100644
--- a/lib/statsd.js
+++ b/lib/statsd.js
@@ -2,7 +2,7 @@ const
 StatsD = require("node-statsd").StatsD,
 config = require('./configuration');
 
-const PREFIX = "browserid." + config.get('process_type') + "."; 
+const PREFIX = "browserid." + config.get('process_type') + ".";
 
 var statsd = undefined;
 
diff --git a/lib/wsapi.js b/lib/wsapi.js
index 86dca4954..58abd381c 100644
--- a/lib/wsapi.js
+++ b/lib/wsapi.js
@@ -126,7 +126,7 @@ exports.setup = function(options, app) {
       const operation = purl.pathname.substr(WSAPI_PREFIX.length);
 
       // count the number of WSAPI operation
-      statsd.increment("wsapi." + operation); 
+      statsd.increment("wsapi." + operation);
 
       // check to see if the api is known here, before spending more time with
       // the request.
@@ -135,7 +135,7 @@ exports.setup = function(options, app) {
       {
         // if the fake verification api is enabled (for load testing),
         // then let this request fall through
-        if (operation !== 'fake_verification' || !process.env['BROWSERID_FAKE_VERIFICATION']) 
+        if (operation !== 'fake_verification' || !process.env['BROWSERID_FAKE_VERIFICATION'])
           return httputils.badRequest(resp, "no such api");
       }
 
diff --git a/scripts/hash_password.js b/scripts/hash_password.js
index 2a69912ea..f73c5e82c 100755
--- a/scripts/hash_password.js
+++ b/scripts/hash_password.js
@@ -35,4 +35,4 @@ bcryptPassword(process.argv[2], function(err, hash) {
     process.exit(1);
   }
   console.log(hash);
-});
\ No newline at end of file
+});
diff --git a/scripts/merge_train.sh b/scripts/merge_train.sh
index 9fafba6dc..5d0e6e05d 100755
--- a/scripts/merge_train.sh
+++ b/scripts/merge_train.sh
@@ -9,7 +9,7 @@ git fetch origin
 
 # first, let's identify the train
 TRAIN=`git branch -a | grep remotes/origin/train | sed -e 's/^.*train-\(.*\)$/\1/' | sort -n | tail -1`
-echo "Merging train ($TRAIN) into production" 
+echo "Merging train ($TRAIN) into production"
 
 git checkout -B prod remotes/origin/prod
 git merge --no-ff remotes/origin/train-$TRAIN -m "integrating train $TRAIN"
diff --git a/scripts/serve_example.js b/scripts/serve_example.js
index 1b23aec83..40952690e 100755
--- a/scripts/serve_example.js
+++ b/scripts/serve_example.js
@@ -61,7 +61,7 @@ exampleServer.post('/process_assertion', function(req, res, next) {
   // An "audience" argument is embedded in the assertion and must match our hostname.
   // Because this one server runs on multiple different domain names we just use
   // the host parameter out of the request.
-  var audience = req.headers['host'] ? req.headers['host'] : localHostname;   
+  var audience = req.headers['host'] ? req.headers['host'] : localHostname;
   var data = querystring.stringify({
     assertion: req.body.assertion,
     audience: audience
-- 
GitLab