cleanup: Use consistent switch indentation
We are currently inconsistent on whether case labels share the same indentation level as the corresponding switch statement or not. gjs goes with the default of no additional indentation, so go along with that. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/608
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
5ec4c2e43e
commit
6ed5bc2f6c
@ -1559,29 +1559,29 @@ var DeviceCategory = class extends PopupMenu.PopupMenuSection {
|
||||
|
||||
_getSummaryIcon() {
|
||||
switch (this._category) {
|
||||
case NMConnectionCategory.WIRED:
|
||||
return 'network-wired-symbolic';
|
||||
case NMConnectionCategory.WIRELESS:
|
||||
case NMConnectionCategory.WWAN:
|
||||
return 'network-wireless-symbolic';
|
||||
case NMConnectionCategory.WIRED:
|
||||
return 'network-wired-symbolic';
|
||||
case NMConnectionCategory.WIRELESS:
|
||||
case NMConnectionCategory.WWAN:
|
||||
return 'network-wireless-symbolic';
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
_getSummaryLabel(nDevices) {
|
||||
switch (this._category) {
|
||||
case NMConnectionCategory.WIRED:
|
||||
return ngettext("%s Wired Connection",
|
||||
"%s Wired Connections",
|
||||
nDevices).format(nDevices);
|
||||
case NMConnectionCategory.WIRELESS:
|
||||
return ngettext("%s Wi-Fi Connection",
|
||||
"%s Wi-Fi Connections",
|
||||
nDevices).format(nDevices);
|
||||
case NMConnectionCategory.WWAN:
|
||||
return ngettext("%s Modem Connection",
|
||||
"%s Modem Connections",
|
||||
nDevices).format(nDevices);
|
||||
case NMConnectionCategory.WIRED:
|
||||
return ngettext("%s Wired Connection",
|
||||
"%s Wired Connections",
|
||||
nDevices).format(nDevices);
|
||||
case NMConnectionCategory.WIRELESS:
|
||||
return ngettext("%s Wi-Fi Connection",
|
||||
"%s Wi-Fi Connections",
|
||||
nDevices).format(nDevices);
|
||||
case NMConnectionCategory.WWAN:
|
||||
return ngettext("%s Modem Connection",
|
||||
"%s Modem Connections",
|
||||
nDevices).format(nDevices);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user