From d5790e150a135871d24e93fda1f00a59f81c15cf Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Sat, 3 Feb 2024 17:42:34 -0500 Subject: [PATCH] refactor to remove else clause --- components/home/HomeRows.bs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/components/home/HomeRows.bs b/components/home/HomeRows.bs index a4671ae5..e99a3ba9 100644 --- a/components/home/HomeRows.bs +++ b/components/home/HomeRows.bs @@ -95,11 +95,9 @@ sub processUserSections() loadedSections = 0 for i = 0 to 6 sectionName = m.global.session.user.settings["homesection" + i.toStr()] - if isValid(sectionName) - sectionName = LCase(sectionName) - else - exit for - end if + if not isValid(sectionName) then exit for + + sectionName = LCase(sectionName) sectionLoaded = false if sectionName <> "none" sectionLoaded = addHomeSection(sectionName)