mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Minor cleanups; no functional changes.
lslcleanup: Variables renamed, order changed, comments added. Other changes: remove semicolon at end of sentence, use self.Cast instead of creating a CAST node on the fly.
This commit is contained in:
parent
0a7e2a9e1d
commit
a0d4c77081
3 changed files with 24 additions and 24 deletions
|
@ -195,10 +195,7 @@ def OptimizeFunc(self, parent, index):
|
|||
node['nt'] = 'CAST'
|
||||
del child[1]
|
||||
del node['name']
|
||||
child[0] = {'nt':'CAST', 't':'string',
|
||||
'ch':[child[0]]}
|
||||
if 'SEF' in child[0]['ch'][0]:
|
||||
child[0]['SEF'] = True
|
||||
child[0] = self.Cast(child[0], 'string')
|
||||
return
|
||||
|
||||
# Check for type incompatibility or index out of range
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue