upvote method fixed
rubucop fixed