Fixed linting issues as shown by code climate.