cleanup: Avoid unnecessary parentheses
Extra parentheses usually add noise rather than clarity, so avoid them. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/805
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
ebf77748a8
commit
e44adb92cf
@ -138,7 +138,7 @@ var StreamSlider = class {
|
||||
_updateVolume() {
|
||||
let muted = this._stream.is_muted;
|
||||
this._changeSlider(muted
|
||||
? 0 : (this._stream.volume / this._control.get_vol_max_norm()));
|
||||
? 0 : this._stream.volume / this._control.get_vol_max_norm());
|
||||
this.emit('stream-updated');
|
||||
}
|
||||
|
||||
@ -227,9 +227,9 @@ var OutputStreamSlider = class extends StreamSlider {
|
||||
}
|
||||
|
||||
_updateSliderIcon() {
|
||||
this._icon.icon_name = (this._hasHeadphones
|
||||
this._icon.icon_name = this._hasHeadphones
|
||||
? 'audio-headphones-symbolic'
|
||||
: 'audio-speakers-symbolic');
|
||||
: 'audio-speakers-symbolic';
|
||||
}
|
||||
|
||||
_portChanged() {
|
||||
|
Reference in New Issue
Block a user