From b6d02f8e1fce0b46d9353db6a4631ec931e7ae88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 7 Aug 2019 04:59:02 +0200 Subject: [PATCH] cleanup: Use operator shorthands where possible Shorthands like a += b are well-established, so prefer them over the less concise a = a + b. https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/91 --- extensions/native-window-placement/extension.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/native-window-placement/extension.js b/extensions/native-window-placement/extension.js index dfe41655..ed319f72 100644 --- a/extensions/native-window-placement/extension.js +++ b/extensions/native-window-placement/extension.js @@ -206,8 +206,8 @@ class NaturalLayoutStrategy extends Workspace.LayoutStrategy { 1.0); // Make bounding rect fill the screen size for later steps - bounds.x = bounds.x - (areaRect.width - bounds.width * scale) / 2; - bounds.y = bounds.y - (areaRect.height - bounds.height * scale) / 2; + bounds.x -= (areaRect.width - bounds.width * scale) / 2; + bounds.y -= (areaRect.height - bounds.height * scale) / 2; bounds.width = areaRect.width / scale; bounds.height = areaRect.height / scale;