Cleaning up linting error with ensure param