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

Pre release 0.4.2 changes #112

Merged
merged 16 commits into from
Dec 20, 2016
Merged

Conversation

sethlu
Copy link
Contributor

@sethlu sethlu commented Dec 15, 2016

@develar
Copy link
Contributor

develar commented Dec 15, 2016

Please do not remove function removePassword.

@sethlu
Copy link
Contributor Author

sethlu commented Dec 15, 2016

@develar oh sure! Let me drop that change quickly.

@sethlu
Copy link
Contributor Author

sethlu commented Dec 15, 2016

@develar By the way, when would removePassword be applicable in electron-osx-sign as we don't pass in password?

@develar
Copy link
Contributor

develar commented Dec 15, 2016

@sethlu Hmm... It seems you right. In any case I think it is better to leave to be sure that later it will be not exposed if password will be passed.

@sethlu
Copy link
Contributor Author

sethlu commented Dec 15, 2016

@develar Thanks for the clarification... I'll rebase the commits tomorrow 😸

if (debuglog.enabled) {
debuglog(`Executing ${file} ${args == null ? '' : removePassword(args.join(' '))}`)
}
debuglog('Executing...', file, args && Array.isArray(args) ? removePassword(args.join(' ')) : '')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@develar will this work in the way you pictured?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. Why did you decide to not check debuglog.enabled?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@develar oh I thought if debuglog is not enabled then nothing should be emitted from debuglog... Or do we need to check debuglog.enabled every time we try to log something?

Copy link
Contributor

Choose a reason for hiding this comment

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

As we do here string concatenation, it is better to not do it if debug is not enabled. Ok — it doesn't affect performance noticeably :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@develar thanks for clarifying! That makes sense 😸 I'll update this later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@develar changes have already been applied in the commit amend.

@sethlu
Copy link
Contributor Author

sethlu commented Dec 19, 2016

If there are no other review, I will merge this branch in about 12 hours and push a new release 0.4.2. 😸

@sethlu sethlu merged commit 5e787aa into electron:master Dec 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants