Skip to content
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.

Return empty lists, not null #83

Open
hwellmann opened this issue Jun 11, 2017 · 1 comment
Open

Return empty lists, not null #83

hwellmann opened this issue Jun 11, 2017 · 1 comment

Comments

@hwellmann
Copy link

This method call returns null when no matching volumes are found:

client.volume().list().filters("dangling", "true").all()

Returning an empty list would enable Java 8 stream idioms like all().foreach(...).

@iocanel
Copy link
Member

iocanel commented Jul 12, 2017

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants