cleanup: Use rest parameters instead of arguments

Spotted by eslint.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/607
This commit is contained in:
Florian Müllner
2019-02-12 12:24:30 +01:00
parent 0b08ee54bb
commit fe83cd91bb
3 changed files with 11 additions and 10 deletions

View File

@ -57,8 +57,8 @@ function _patchLayoutClass(layoutClass, styleProps) {
};
}
function _loggingFunc() {
let fields = {'MESSAGE': [].join.call(arguments, ', ')};
function _loggingFunc(...args) {
let fields = {'MESSAGE': args.join(', ')};
let domain = "GNOME Shell";
// If the caller is an extension, add it as metadata