Skip to content

Commit

Permalink
fix mistake for deducing data in if statement
Browse files Browse the repository at this point in the history
#2
Signed-off-by: Thibaud Arnault <thyb@oauth.io>
  • Loading branch information
Thibaud Arnault committed Feb 24, 2016
1 parent bab3426 commit a777b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api/endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Endpoint {
this.params.push(p)
}
else {
if (this.url.indexOf('/:' + p.name) == -1) {
if (this.url.indexOf('/:' + p.name) != -1) {
this.params.push(p)
}
else {
Expand Down

0 comments on commit a777b1c

Please sign in to comment.