Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/fix lint #2577

Merged
merged 2 commits into from May 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions proxy_backends/collection/helpers.js
Expand Up @@ -14,10 +14,15 @@ ProxyBackends.helpers({
// Get API
const api = Apis.findOne(apiId);

// placeholder for API name
let apiName;

// Make sure API was found before accessing name property
if (api) {
// Return API Name
return api.name;
// Set API Name from API
apiName = api.name;
}

return apiName;
Copy link
Contributor

Choose a reason for hiding this comment

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

I mean, @marla-singer, before this return here, it was returning undefined anyways.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What should this code block look like @mauriciovieira?

},
});