IndexTs: Move local variable to used scope

Change-Id: Ic6ed1357a823a98386304bee72dff963ac91e4dc
1 file changed