Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Resolve the cwd and return the result from the parse method#24

Merged
keplersj merged 2 commits intoAtomLinter:masterfrom
mupkoo:patch-1
Aug 7, 2015
Merged

Resolve the cwd and return the result from the parse method#24
keplersj merged 2 commits intoAtomLinter:masterfrom
mupkoo:patch-1

Conversation

@mupkoo
Copy link
Copy Markdown
Contributor

@mupkoo mupkoo commented Aug 7, 2015

There were two things that were not ok.

  • The cwd was set to the file name
  • There was no return infront of helpers.parse

This PR should fix those problems

There were two things that were not ok.

* The `cwd` was set to the file name
* There was no return infront of `helpers.parse`

This PR should fix those problems
@mupkoo
Copy link
Copy Markdown
Contributor Author

mupkoo commented Aug 7, 2015

This should fix the #23

@keplersj
Copy link
Copy Markdown
Contributor

keplersj commented Aug 7, 2015

I'll have to test later, but iirc there is no need for a return in front of helpers.parse. It might actually cause issue iirc.

@mupkoo
Copy link
Copy Markdown
Contributor Author

mupkoo commented Aug 7, 2015

The linter messages are not shown if there is no return statement.

lib/main.js Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

return on this line is unnecessary

a.filter(x => x * x)

is equal to

a.filter(function(x){ return x * x })

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the explanation @steelbrain :). You learn something new everyday :)

@mupkoo
Copy link
Copy Markdown
Contributor Author

mupkoo commented Aug 7, 2015

I removed the return statement. On my local machine I was using a different syntax.

...then((output) => {
   return ....
});

keplersj added a commit that referenced this pull request Aug 7, 2015
Resolve the cwd and return the result from the parse method
@keplersj keplersj merged commit e41cdb2 into AtomLinter:master Aug 7, 2015
@keplersj
Copy link
Copy Markdown
Contributor

keplersj commented Aug 7, 2015

This will be published in the next path update. Thanks.

@Arcanemagus Arcanemagus added the bug label Dec 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants