metadata-store: never crash fetching group metadata

In order to track & respond to all group-related metadata, hooks may
want to subscribe to the metadata-store in response to group creation.
In that case it is possible that there are no entries for the group-path
in group-indices yet.

This makes us fall back to the empty set in case group-indices has no
entry for the group-path yet.
This commit is contained in:
Fang 2020-03-01 01:40:06 +01:00
parent 0658367aaf
commit 115fd1c14c
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972

View File

@ -182,7 +182,7 @@
|= =group-path
^- ^associations
%- ~(gas by *^associations)
%+ turn ~(tap in (~(got by group-indices) group-path))
%+ turn ~(tap in (~(gut by group-indices) group-path ~))
|= =resource
:- [group-path resource]
(~(got by associations) [group-path resource])