REFACTOR: variable '_postSnapshot' always evaluates to true (#9671)

This commit is contained in:
Joffrey JAFFEUX 2020-05-07 16:28:28 +02:00 committed by GitHub
parent d020e70643
commit 930989d462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,8 +133,7 @@ export default DropdownSelectBoxComponent.extend({
if (
this.canWhisper &&
(!_postSnapshot ||
(_postSnapshot &&
_postSnapshot.post_type !== this.site.post_types.whisper))
_postSnapshot.post_type !== this.site.post_types.whisper)
) {
items.push({
name: I18n.t("composer.composer_actions.toggle_whisper.label"),