Fixed RuboCop offense Lint/UselessAssignment

Bug: 63307
Change-Id: I89eb92a64a15490e3a5042ec86733bc5884122b9