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 loadedSections = 0
for i = 0 to 6 for i = 0 to 6
sectionName = m.global.session.user.settings["homesection" + i.toStr()] sectionName = m.global.session.user.settings["homesection" + i.toStr()]
if isValid(sectionName) if not isValid(sectionName) then exit for
sectionName = LCase(sectionName)
else sectionName = LCase(sectionName)
exit for
end if
sectionLoaded = false sectionLoaded = false
if sectionName <> "none" if sectionName <> "none"
sectionLoaded = addHomeSection(sectionName) sectionLoaded = addHomeSection(sectionName)