Fix "useless assignment" Rubocop warnings

王权利请求将github/fork/ggarnier/master合并到master

Created by: ggarnier

Enable "UselessAssignment" lint in Rubocop and fix all warnings related to this.

合并请求报告