make code climate happy
Merge pull request #3 from glenbray/remove-duplication

remove duplication