Move local variable to more localized scope

Bug: 281952366
Test: Presubmit
Change-Id: I14cc41cda9e05d39d844d1e8efcdfc9012c8efcb
1 file changed