gnome-shell/js
Florian Müllner 14d7897a93 style: Stop using braces for single-line arrow functions
Braces are optional for single-line arrow functions, but there's a
subtle difference:
Without braces, the expression is implicitly used as return value; with
braces, the function returns nothing unless there's an explicit return.

We currently reflect that in our style by only omitting braces when the
function is expected to have a return value, but that's not very obvious,
not an important differentiation to make, and not easy to express in an
automatic rule.

So just omit braces consistently as mandated by gjs' coding style.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/608
2019-07-02 12:17:46 +00:00
..
extensionPrefs extensionPrefs: Avoid awkward indentation in string literal 2019-07-02 12:17:46 +00:00
gdm style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
misc style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
perf style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
portalHelper style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
ui style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
js-resources.gresource.xml accessibility: Add pointer accessibility support 2019-06-06 09:13:29 +02:00
meson.build build: Use dedicated resources for helper programs 2018-08-14 17:28:04 +00:00
portal-resources.gresource.xml build: Include params.js in portal-helper gresources 2018-10-23 15:38:31 +00:00
prefs-resources.gresource.xml build: Use dedicated resources for helper programs 2018-08-14 17:28:04 +00:00