From 44cbd025f4aadf5e7f56c1aa426952be4de927e3 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 28 Sep 2025 08:25:48 +0200 Subject: [PATCH] correct indentation, remove unnecessary check --- .../quickshell/ii/modules/bar/HyprlandXkbIndicator.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.config/quickshell/ii/modules/bar/HyprlandXkbIndicator.qml b/.config/quickshell/ii/modules/bar/HyprlandXkbIndicator.qml index ed00cd532..c4dc11083 100644 --- a/.config/quickshell/ii/modules/bar/HyprlandXkbIndicator.qml +++ b/.config/quickshell/ii/modules/bar/HyprlandXkbIndicator.qml @@ -10,11 +10,11 @@ Loader { visible: active function abbreviateLayoutCode(fullCode) { - return fullCode.split(':').map(layout => { - const baseLayout = layout.split('-')[0]; - return baseLayout.length > 4 ? baseLayout.slice(0, 4) : baseLayout; - }).join('\n'); - } + return fullCode.split(':').map(layout => { + const baseLayout = layout.split('-')[0]; + return baseLayout.slice(0, 4); + }).join('\n'); + } sourceComponent: Item { implicitWidth: root.vertical ? null : layoutCodeText.implicitWidth