refactor to remove else clause

This commit is contained in:
Charles Ewert 2024-02-03 17:42:34 -05:00
parent 1a875a0a6d
commit d5790e150a

View File

@ -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)