This aborts the commit if there's no `pre-commit` hook. Something like this is probably what you were intending:

```rb
return false if hook && !hook.success?
```