[Code Climate] small duplication fix