Permalink
Browse files

starting to enforce JSHint checks

  • Loading branch information...
1 parent d13ce49 commit 704ffa3d0a7bed0447e405e71b3998c724fa9447 Dominic Barnes committed Dec 6, 2011
Showing with 13 additions and 12 deletions.
  1. +1 −0 .jshintignore
  2. +12 −12 lib/server.js
View
@@ -0,0 +1 @@
+node_modules
View
@@ -12,6 +12,18 @@ var Client = require("./client"),
_ = require("underscore");
/**
+ * Helper function for generating a SHA1 hash of an input string
+ * @param {string} input
+ */
+function sha1(input) {
+ var hash = crypto.createHash("sha1");
+
+ hash.update(input.toString());
+
+ return hash.digest("hex");
+}
+
+/**
* @class Document
* Handles interaction at the server level
*/
@@ -344,17 +356,5 @@ Server.prototype.db = function (name) {
return new Database(this, name);
};
-/**
- * Helper function for generating a SHA1 hash of an input string
- * @param {string} input
- */
-function sha1(input) {
- var hash = crypto.createHash("sha1");
-
- hash.update(input.toString());
-
- return hash.digest("hex");
-}
-
/** Export to CommonJS */
module.exports = Server;

0 comments on commit 704ffa3

Please sign in to comment.