put code climate coverage in if block