cleanup: Use type-safe comparisons

We have been using type-safe comparisons in new code for quite a while
now, however old code has only been adapted slowly.

Change all the remaining bits to get rid of another legacy style
difference.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2866>
This commit is contained in:
Florian Müllner
2023-08-07 02:51:19 +02:00
committed by Marge Bot
parent 9a3913d4a0
commit a42f7c2384
94 changed files with 847 additions and 845 deletions

View File

@ -54,7 +54,7 @@ export const BarLevel = GObject.registerClass({
set value(value) {
value = Math.max(Math.min(value, this._maxValue), 0);
if (this._value == value)
if (this._value === value)
return;
this._value = value;
@ -69,7 +69,7 @@ export const BarLevel = GObject.registerClass({
set maximumValue(value) {
value = Math.max(value, 1);
if (this._maxValue == value)
if (this._maxValue === value)
return;
this._maxValue = value;
@ -83,7 +83,7 @@ export const BarLevel = GObject.registerClass({
}
set overdriveStart(value) {
if (this._overdriveStart == value)
if (this._overdriveStart === value)
return;
if (value > this._maxValue) {