gnome-shell/js/ui
Florian Müllner 2e4e2500dd cleanup: Avoid "lonely" ifs where it makes sense
If an else block only contains an if statement, the two can be
combined into an if-else block, which cuts down on indentation
and usually helps legibility.

There are exceptions (for instance where the outer if and else
blocks are mirrored), but where it makes sense, change the code
to avoid lonely ifs.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/805
2019-11-11 19:25:14 +00:00
..
components cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
status cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
accessDialog.js cleanup: Use inheritance for Actor classes instead of composition 2019-10-16 15:26:13 +00:00
altTab.js cleanup: Avoid "lonely" ifs where it makes sense 2019-11-11 19:25:14 +00:00
animation.js js: Fix alignment 2019-11-11 16:52:10 +00:00
appDisplay.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
appFavorites.js Update shotwell desktop file name references 2019-10-18 16:50:57 +02:00
audioDeviceSelection.js cleanup: Use non-deprecated key symbols 2019-11-06 09:42:57 +01:00
background.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
backgroundMenu.js backgroundMenu: Animate menu opening 2019-09-11 23:25:21 +00:00
barLevel.js barLevel: Remove duplicated assignment 2019-08-13 16:35:17 +02:00
boxpointer.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
calendar.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
checkBox.js st: Remove StBin's align properties 2019-11-04 21:27:56 +01:00
closeDialog.js cleanup: Use non-deprecated key symbols 2019-11-06 09:42:57 +01:00
ctrlAltTab.js ctrlAltTab: Use arrow function for callback 2019-11-11 19:25:14 +00:00
dash.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
dateMenu.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
dialog.js js: Replace child properties 2019-11-01 19:42:01 +00:00
dnd.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
edgeDragAction.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
endSessionDialog.js cleanup: Use non-deprecated key symbols 2019-11-06 09:42:57 +01:00
environment.js environment: Reimplement Date.toLocaleFormat() override 2019-11-06 20:19:57 +00:00
extensionDownloader.js cleanup: Use non-deprecated key symbols 2019-11-06 09:42:57 +01:00
extensionSystem.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
focusCaretTracker.js cleanup: Prefer template strings 2019-07-05 11:32:31 +00:00
grabHelper.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
ibusCandidatePopup.js cleanup: Replace deprecated lower/raise calls 2019-11-06 09:42:57 +01:00
iconGrid.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
inhibitShortcutsDialog.js cleanup: Use consistent style for ternary operator 2019-09-15 13:30:19 +00:00
kbdA11yDialog.js cleanup: Use non-deprecated key symbols 2019-11-06 09:42:57 +01:00
keyboard.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
layout.js cleanup: Replace deprecated lower/raise calls 2019-11-06 09:42:57 +01:00
lightbox.js cleanup: Replace deprecated lower/raise calls 2019-11-06 09:42:57 +01:00
locatePointer.js locatePointer: Bind ripples creation to settings 2019-09-09 19:28:18 +00:00
lookingGlass.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
magnifier.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
magnifierDBus.js cleanup: Use more template strings 2019-11-05 01:51:29 +00:00
main.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
messageList.js cleanup: Use more template strings 2019-11-05 01:51:29 +00:00
messageTray.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
modalDialog.js cleanup: Replace deprecated lower/raise calls 2019-11-06 09:42:57 +01:00
mpris.js mpris: Hide notification when !CanPlay, instead of closing player 2019-10-29 19:25:16 +00:00
notificationDaemon.js messageTray: Inherit Notification, Source and NotificationPolicy from GObject 2019-10-16 15:26:12 +00:00
osdMonitorLabeler.js cleanup: Use inheritance for Actor classes instead of composition 2019-10-16 15:26:13 +00:00
osdWindow.js js: Replace child properties 2019-11-01 19:42:01 +00:00
overview.js cleanup: Replace deprecated lower/raise calls 2019-11-06 09:42:57 +01:00
overviewControls.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
padOsd.js cleanup: Use non-deprecated key symbols 2019-11-06 09:42:57 +01:00
pageIndicators.js cleanup: Replace signal connections with virtual functions 2019-10-16 15:26:13 +00:00
panel.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
panelMenu.js js: Use generic actor properties to align StBin children 2019-11-04 21:27:56 +01:00
pointerA11yTimeout.js cleanup: Remove left-over imports 2019-09-11 20:59:31 +00:00
pointerWatcher.js cleanup: Stop using Mainloop module 2019-09-12 19:09:24 +02:00
popupMenu.js cleanup: Replace deprecated lower/raise calls 2019-11-06 09:42:57 +01:00
remoteSearch.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
ripples.js cleanup: Disambiguate assignments in arrow functions 2019-09-15 16:02:45 +02:00
runDialog.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
screencast.js cleanup: Use destructuring for imports from GI 2019-02-09 07:39:20 +01:00
screenShield.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
screenshot.js screenshot: Allow saving to clipboard 2019-11-06 22:45:22 +00:00
scripting.js scripting: Disable an eslint warning 2019-09-15 16:02:45 +02:00
search.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
sessionMode.js cleanup: Use consistent style for ternary operator 2019-09-15 13:30:19 +00:00
shellDBus.js cleanup: Use more template strings 2019-11-05 01:51:29 +00:00
shellEntry.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
shellMountOperation.js cleanup: Use non-deprecated key symbols 2019-11-06 09:42:57 +01:00
slider.js js: Replace child properties 2019-11-01 19:42:01 +00:00
switcherPopup.js cleanup: Use non-deprecated key symbols 2019-11-06 09:42:57 +01:00
switchMonitor.js cleanup: Use non-deprecated key symbols 2019-11-06 09:42:57 +01:00
tweener.js tweener: Use new adjustAnimationTime() helper 2019-08-06 20:50:43 +02:00
unlockDialog.js js: Use generic actor properties to align StBin children 2019-11-04 21:27:56 +01:00
userWidget.js js: Use Gjs GTypeName computation for all classes 2019-10-29 18:38:35 +00:00
viewSelector.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
windowAttentionHandler.js messageTray: Inherit Notification, Source and NotificationPolicy from GObject 2019-10-16 15:26:12 +00:00
windowManager.js cleanup: Avoid "lonely" ifs where it makes sense 2019-11-11 19:25:14 +00:00
windowMenu.js cleanup: Avoid unnecessary parentheses in arrow functions 2019-09-15 16:02:45 +02:00
workspace.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
workspacesView.js cleanup: Avoid "lonely" ifs where it makes sense 2019-11-11 19:25:14 +00:00
workspaceSwitcherPopup.js cleanup: Stop using Mainloop module 2019-09-12 19:09:24 +02:00
workspaceThumbnail.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
xdndHandler.js cleanup: Avoid "lonely" ifs where it makes sense 2019-11-11 19:25:14 +00:00