`Dir.chdir` will always return `0`, so an explicit `true` here would probably make the intention more clear:

```ruby
Dir.chdir(path)
true
```