From a7ce25bd88e1004a66385dc2edaaa9cc784e843d Mon Sep 17 00:00:00 2001
From: Tristan Cavelier <tristan.cavelier@tiolive.com>
Date: Fri, 18 Jan 2013 17:29:26 +0100
Subject: [PATCH] fix indent in putAttachmentCommand.js

---
 src/jio/commands/putAttachmentCommand.js | 90 ++++++++++++------------
 1 file changed, 45 insertions(+), 45 deletions(-)

diff --git a/src/jio/commands/putAttachmentCommand.js b/src/jio/commands/putAttachmentCommand.js
index 0d252b8..4c6dc4e 100644
--- a/src/jio/commands/putAttachmentCommand.js
+++ b/src/jio/commands/putAttachmentCommand.js
@@ -1,52 +1,52 @@
 /*jslint indent: 2, maxlen: 80, sloppy: true */
 /*global command: true */
 var putAttachmentCommand = function (spec, my) {
-    var that = command(spec, my);
-    spec = spec || {};
-    my = my || {};
-    // Attributes //
-    // Methods //
-    that.getLabel = function () {
-      return 'putAttachment';
-    };
+  var that = command(spec, my);
+  spec = spec || {};
+  my = my || {};
+  // Attributes //
+  // Methods //
+  that.getLabel = function () {
+    return 'putAttachment';
+  };
 
-    that.executeOn = function (storage) {
-      storage.putAttachment(that);
-    };
+  that.executeOn = function (storage) {
+    storage.putAttachment(that);
+  };
 
-    that.validateState = function () {
-      if (!(typeof that.getDocId() === "string" && that.getDocId() !==
+  that.validateState = function () {
+    if (!(typeof that.getDocId() === "string" && that.getDocId() !==
           "")) {
-        that.error({
-          "status": 20,
-          "statusText": "Document Id Required",
-          "error": "document_id_required",
-          "message": "The document id is not provided",
-          "reason": "Document id is undefined"
-        });
-        return false;
-      }
-      if (typeof that.getAttachmentId() !== "string") {
-        that.error({
-          "status": 22,
-          "statusText": "Attachment Id Required",
-          "error": "attachment_id_required",
-          "message": "The attachment id must be set",
-          "reason": "Attachment id not set"
-        });
-        return false;
-      }
-      if (that.getAttachmentId() === "") {
-        that.error({
-          "status": 23,
-          "statusText": "Invalid Attachment Id",
-          "error": "invalid_attachment_id",
-          "message": "The attachment id must not be an empty string",
-          "reason": "Attachment id is empty"
-        });
-      }
-      return true;
-    };
+      that.error({
+        "status": 20,
+        "statusText": "Document Id Required",
+        "error": "document_id_required",
+        "message": "The document id is not provided",
+        "reason": "Document id is undefined"
+      });
+      return false;
+    }
+    if (typeof that.getAttachmentId() !== "string") {
+      that.error({
+        "status": 22,
+        "statusText": "Attachment Id Required",
+        "error": "attachment_id_required",
+        "message": "The attachment id must be set",
+        "reason": "Attachment id not set"
+      });
+      return false;
+    }
+    if (that.getAttachmentId() === "") {
+      that.error({
+        "status": 23,
+        "statusText": "Invalid Attachment Id",
+        "error": "invalid_attachment_id",
+        "message": "The attachment id must not be an empty string",
+        "reason": "Attachment id is empty"
+      });
+    }
+    return true;
+  };
 
-    return that;
-  };
\ No newline at end of file
+  return that;
+};
-- 
2.30.9