I prefer splitting this into two lines:

```
machine_ip = nil
machine_ip = read_machine_ip(adapter) if adapter
```

I always prefer explicitness and ease of understanding over LoC, and I think that is easier to approach from a beginner standpoint.