March 13, 2018 How to simplify nested ifs | ||||
---|---|---|---|---|
| ||||
Hi I have a construction like the following if (source) { if (source.pool) { if (source.pool.repository) { if (source.pool.repository.directory) { if (source.pool.repository.directory.users) { return source.pool.repository.directory.users[ownerID]; } } } } } |
Copyright © 1999-2021 by the D Language Foundation