Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
jio
Commits
7f891a96
Commit
7f891a96
authored
Nov 23, 2012
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing unneeded validations
parent
2bd2778e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
24 deletions
+0
-24
src/jio/commands/postCommand.js
src/jio/commands/postCommand.js
+0
-16
src/jio/commands/putCommand.js
src/jio/commands/putCommand.js
+0
-8
No files found.
src/jio/commands/postCommand.js
View file @
7f891a96
...
@@ -10,22 +10,6 @@ var postCommand = function(spec, my) {
...
@@ -10,22 +10,6 @@ var postCommand = function(spec, my) {
return
'
post
'
;
return
'
post
'
;
};
};
/**
* Validates the storage handler.
* @param {object} handler The storage handler
*/
that
.
validate
=
function
()
{
if
(
typeof
that
.
getDocInfo
(
'
content
'
)
!==
'
string
'
)
{
that
.
error
({
status
:
21
,
statusText
:
'
Content Required
'
,
error
:
'
content_required
'
,
message
:
'
No data to put.
'
,
reason
:
'
no data to put
'
});
return
false
;
}
return
that
.
validateState
();
};
that
.
executeOn
=
function
(
storage
)
{
that
.
executeOn
=
function
(
storage
)
{
storage
.
post
(
that
);
storage
.
post
(
that
);
};
};
...
...
src/jio/commands/putCommand.js
View file @
7f891a96
...
@@ -15,14 +15,6 @@ var putCommand = function(spec, my) {
...
@@ -15,14 +15,6 @@ var putCommand = function(spec, my) {
* @param {object} handler The storage handler
* @param {object} handler The storage handler
*/
*/
that
.
validate
=
function
()
{
that
.
validate
=
function
()
{
if
(
typeof
that
.
getDocInfo
(
'
content
'
)
!==
'
string
'
)
{
that
.
error
({
status
:
21
,
statusText
:
'
Content Required
'
,
error
:
'
content_required
'
,
message
:
'
No data to put.
'
,
reason
:
'
no data to put
'
});
return
false
;
}
return
that
.
validateState
();
return
that
.
validateState
();
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment