Commit a42b4948 authored by Tristan Cavelier's avatar Tristan Cavelier

move 2 'return false' which were at the wrong place!

parent 5d6b82d1
...@@ -28,9 +28,9 @@ var getCommand = function(spec, my) { ...@@ -28,9 +28,9 @@ var getCommand = function(spec, my) {
"message": "The attachment id must not be an empty string", "message": "The attachment id must not be an empty string",
"reason": "Attachment id is empty" "reason": "Attachment id is empty"
}); });
}
return false; return false;
} }
}
return true; return true;
}; };
......
...@@ -28,9 +28,9 @@ var removeCommand = function(spec, my) { ...@@ -28,9 +28,9 @@ var removeCommand = function(spec, my) {
"message": "The attachment id must not be an empty string", "message": "The attachment id must not be an empty string",
"reason": "Attachment id is empty" "reason": "Attachment id is empty"
}); });
}
return false; return false;
} }
}
return true; return true;
}; };
......
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