networkAgent: Fix mobile broadband notifications

Currently their body message is assigned to an undefined variable
that isn't used for anything later.

Spotted by eslint.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/375
This commit is contained in:
Florian Müllner 2019-01-29 22:53:55 +01:00 committed by Florian Müllner
parent dc4ff941bd
commit 91319e3963

View File

@ -705,14 +705,14 @@ var NetworkAgent = class {
if (hints.indexOf('pin') != -1) { if (hints.indexOf('pin') != -1) {
let gsmSetting = connection.get_setting_gsm(); let gsmSetting = connection.get_setting_gsm();
title = _("PIN code required"); title = _("PIN code required");
message = _("PIN code is needed for the mobile broadband device"); body = _("PIN code is needed for the mobile broadband device");
break; break;
} }
// fall through // fall through
case 'cdma': case 'cdma':
case 'bluetooth': case 'bluetooth':
title = _("Mobile broadband network password"); title = _("Mobile broadband network password");
message = _("A password is required to connect to “%s”.").format(connectionSetting.get_id()); body = _("A password is required to connect to “%s”.").format(connectionSetting.get_id());
break; break;
default: default:
log('Invalid connection type: ' + connectionType); log('Invalid connection type: ' + connectionType);