refactor to remove else clause
This commit is contained in:
parent
1a875a0a6d
commit
d5790e150a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user