gnome-shell/js/ui
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
..
components style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
status style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
accessDialog.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
altTab.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
animation.js style: Use camelCase for variable names 2019-07-01 23:44:11 +02:00
appDisplay.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
appFavorites.js style: Fix stray/missing semi-colons 2019-07-01 23:44:11 +02:00
audioDeviceSelection.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
background.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
backgroundMenu.js popupMenu: Make MenuManager to take an actor as parameter 2019-04-17 21:32:18 +00:00
barLevel.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
boxpointer.js cleanup: Use consistent switch indentation 2019-07-02 12:17:46 +00:00
calendar.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
checkBox.js cleanup: Use destructuring for imports from GI 2019-02-09 07:39:20 +01:00
closeDialog.js style: Fix stray/missing spaces 2019-07-01 23:44:11 +02:00
ctrlAltTab.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
dash.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
dateMenu.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
dialog.js style: Fix stray/missing spaces 2019-07-01 23:44:11 +02:00
dnd.js cleanup: Use arrow functions for tweener callbacks 2019-07-02 12:17:46 +00:00
edgeDragAction.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
endSessionDialog.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
environment.js style: Fix stray/missing spaces 2019-07-01 23:44:11 +02:00
extensionDownloader.js style: Fix stray/missing spaces 2019-07-01 23:44:11 +02:00
extensionSystem.js style: Use space after catch 2019-07-01 23:44:11 +02:00
focusCaretTracker.js cleanup: Use spaces for indentation 2019-07-02 12:17:46 +00:00
grabHelper.js cleanup: Use Array.includes() to check for element existence 2019-07-01 21:28:52 +00:00
ibusCandidatePopup.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
iconGrid.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
inhibitShortcutsDialog.js cleanup: Use Array.includes() to check for element existence 2019-07-01 21:28:52 +00:00
kbdA11yDialog.js cleanup: Use destructuring for imports from GI 2019-02-09 07:39:20 +01:00
keyboard.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
layout.js cleanup: Use consistent style for GObject property definitions 2019-07-02 12:17:46 +00:00
lightbox.js Theme: update to sync with gtk Adwaita 2019-06-21 10:44:08 +02:00
locatePointer.js style: Fix stray/missing spaces 2019-07-01 23:44:11 +02:00
lookingGlass.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
magnifier.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
magnifierDBus.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
main.js cleanup: Avoid implicit coercion 2019-07-01 23:44:11 +02:00
messageList.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
messageTray.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
modalDialog.js cleanup: Use consistent style for GObject property definitions 2019-07-02 12:17:46 +00:00
mpris.js cleanup: Use destructuring for imports from GI 2019-02-09 07:39:20 +01:00
notificationDaemon.js cleanup: Use consistent switch indentation 2019-07-02 12:17:46 +00:00
osdMonitorLabeler.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
osdWindow.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
overview.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
overviewControls.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
padOsd.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
pageIndicators.js cleanup: Use destructuring for imports from GI 2019-02-09 07:39:20 +01:00
panel.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
panel.js. style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
panelMenu.js style: Fix stray/missing spaces 2019-07-01 23:44:11 +02:00
pointerA11yTimeout.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
pointerWatcher.js cleanup: Use destructuring for imports from GI 2019-02-09 07:39:20 +01:00
popupMenu.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
remoteSearch.js style: Use camelCase for variable names 2019-07-01 23:44:11 +02:00
ripples.js cleanup: Use arrow functions for tweener callbacks 2019-07-02 12:17:46 +00:00
runDialog.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
screencast.js cleanup: Use destructuring for imports from GI 2019-02-09 07:39:20 +01:00
screenShield.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
screenshot.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
scripting.js scripting: Don't use legacy API 2019-03-21 10:18:02 +00:00
search.js search: reload search providers when installed applications change 2019-05-29 20:33:16 +00:00
sessionMode.js style: Use space after catch 2019-07-01 23:44:11 +02:00
shellDBus.js cleanup: Avoid implicit coercion 2019-07-01 23:44:11 +02:00
shellEntry.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
shellMountOperation.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
slider.js style: Fix stray/missing semi-colons 2019-07-01 23:44:11 +02:00
switcherPopup.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
switchMonitor.js style: Fix stray/missing spaces 2019-07-01 23:44:11 +02:00
tweener.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
unlockDialog.js cleanup: Use destructuring for imports from GI 2019-02-09 07:39:20 +01:00
userWidget.js cleanup: Remove unused variables 2019-07-01 23:44:10 +02:00
viewSelector.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
windowAttentionHandler.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
windowManager.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
windowMenu.js sessionMode: add a property to disable window manager menus 2019-06-06 01:25:04 +00:00
workspace.js style: Stop using braces for single-line arrow functions 2019-07-02 12:17:46 +00:00
workspacesView.js style: Fix stray/missing spaces 2019-07-01 23:44:11 +02:00
workspaceSwitcherPopup.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
workspaceThumbnail.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00
xdndHandler.js style: Fix indentation errors 2019-07-02 12:17:46 +00:00