cleanup: Prefer template strings
Template strings are much nicer than string concatenation, so use them where possible; this excludes translatable strings and any strings containing '/' (until we can depend on gettext >= 0.20[0]). [0] https://savannah.gnu.org/bugs/?50920 https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/612
This commit is contained in:

committed by
Florian Müllner

parent
46874eed05
commit
0d035a4e53
@ -92,7 +92,7 @@ function loadRemoteSearchProviders(searchSettings, callback) {
|
||||
if (!appInfo.should_show())
|
||||
return;
|
||||
} catch (e) {
|
||||
log('Ignoring search provider ' + path + ': missing DesktopId');
|
||||
log(`Ignoring search provider ${path}: missing DesktopId`);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -313,7 +313,7 @@ var RemoteSearchProvider = class {
|
||||
launchSearch(terms) {
|
||||
// the provider is not compatible with the new version of the interface, launch
|
||||
// the app itself but warn so we can catch the error in logs
|
||||
log('Search provider ' + this.appInfo.get_id() + ' does not implement LaunchSearch');
|
||||
log(`Search provider ${this.appInfo.get_id()} does not implement LaunchSearch`);
|
||||
this.appInfo.launch([], global.create_app_launch_context(0, -1));
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user