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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

converted meteor-accounts-saml coffee to js #6450

Merged
merged 2 commits into from
Mar 23, 2017

Conversation

ggazzo
Copy link
Member

@ggazzo ggazzo commented Mar 23, 2017

@RocketChat/core

const serviceName = 'saml';

const configureSamlService = function(samlConfigs) {
let privateCert = false, privateKey = false;
Copy link
Member

Choose a reason for hiding this comment

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

Do not declare multiple variables at the same line


Meteor.methods({
addSamlService(name) {
RocketChat.settings.add('SAML_Custom_' + name, false, {
Copy link
Member

Choose a reason for hiding this comment

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

Can we use string interpolation instead of concatenation?

});

export {
updateServices, configureSamlService, getSamlConfigs, debounce, logger
Copy link
Member

Choose a reason for hiding this comment

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

IMHO use one var per line is better to read

@ggazzo
Copy link
Member Author

ggazzo commented Mar 23, 2017

@rodrigok done

@engelgabriel engelgabriel modified the milestone: 0.55.0 Mar 23, 2017
@rodrigok rodrigok modified the milestone: 0.55.0 Mar 23, 2017
@rodrigok rodrigok merged commit f8a8666 into RocketChat:develop Mar 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants