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