Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Fixes #33: Look for the opening curly brace when defining a request i… #35

Merged
merged 1 commit into from
Sep 25, 2015

Conversation

bnjbvr
Copy link
Contributor

@bnjbvr bnjbvr commented Sep 19, 2015

…n the pouchdb's adapter.

@bnjbvr
Copy link
Contributor Author

bnjbvr commented Sep 19, 2015

Hi, this fixes the naming issue, and I also wrapped the Function call in a try/catch block. Can you take a look please, @aenario ?

try
map = new Function "doc", stringquery
catch e
callback "Error when parsing the request body: #{e.toString()}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should create an error object here.

@bnjbvr
Copy link
Contributor Author

bnjbvr commented Sep 25, 2015

Hehe, I tend to use single-letter named variables when their scope is really small, as one can still find the variable's name just by looking a bit higher. However, I've fixed it to use your guidelines here. Pull request has been updated, please have another look.

@aenario aenario merged commit ab0b226 into cozy:master Sep 25, 2015
aenario pushed a commit that referenced this pull request Sep 25, 2015
@frankrousseau
Copy link
Contributor

Thank you for the fixes. About single letter variable, it's definitely wrong : poor meaning and hard to rename.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants