Commit 5053f7cd authored by Sven Franck's avatar Sven Franck

jslint pass putAttachmentCommand.js

parent 7aa49403
var putAttachmentCommand = function(spec, my) {
/*jslint indent: 2, maxlen: 80, sloppy: true */
/*global command: true */
var putAttachmentCommand = function (spec, my) {
var that = command(spec, my);
spec = spec || {};
my = my || {};
......@@ -9,11 +11,12 @@ var putAttachmentCommand = function(spec, my) {
};
that.executeOn = function (storage) {
storage.putAttachment (that);
storage.putAttachment(that);
};
that.validateState = function () {
if (!(typeof that.getDocId() === "string" && that.getDocId() !== "")) {
if (!(typeof that.getDocId() === "string" && that.getDocId() !==
"")) {
that.error({
"status": 20,
"statusText": "Document Id Required",
......@@ -46,4 +49,4 @@ var putAttachmentCommand = function(spec, my) {
};
return that;
};
};
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment