From 33315c6050b844339e5bf1fb17201f19d9225f53 Mon Sep 17 00:00:00 2001 From: Ian Date: Wed, 22 Oct 2014 23:51:58 -0700 Subject: [PATCH] minor cleanup --- index.js | 1 - lib/providers.js | 1 - lib/text.js | 2 +- scripts/dev.sh | 1 + server/app.js | 3 +-- 5 files changed, 3 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 9ae6fe6..bd67edf 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,3 @@ - var textbelt = require('./lib/text'); module.exports = textbelt; diff --git a/lib/providers.js b/lib/providers.js index a158e3b..975abf1 100644 --- a/lib/providers.js +++ b/lib/providers.js @@ -1,4 +1,3 @@ - module.exports = { us: [ diff --git a/lib/text.js b/lib/text.js index 869b8be..c71df37 100644 --- a/lib/text.js +++ b/lib/text.js @@ -11,7 +11,7 @@ var debugEnabled = false; value. */ function output() { - if (debugEnabled === true) { + if (debugEnabled) { return console.log.apply(this, arguments); } } diff --git a/scripts/dev.sh b/scripts/dev.sh index bfd341d..4fe41ba 100755 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -1,4 +1,5 @@ #!/bin/bash +# Starts development server cd `dirname $0` supervisor ../server/app.js diff --git a/server/app.js b/server/app.js index 16a2fff..a92604d 100644 --- a/server/app.js +++ b/server/app.js @@ -196,10 +196,9 @@ function dateStr() { } function stripPhone(phone) { - return (phone+'').replace(/\D/g, ''); + return (phone + '').replace(/\D/g, ''); } - // Start server var port = process.env.PORT || 9090; app.listen(port, function() {