File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -110,14 +110,13 @@ type uniFetcher interface {
110
110
// something to it, returning a type T and an error.
111
111
type uniAction [T any ] func (BaseBackend ) (T , error )
112
112
113
- // withBaseUni is a helper function for performing some action on/with a base
114
- // universe with a generic return value .
115
- func withBaseUni [T any ](fetcher uniFetcher , id Identifier ,
113
+ // withUni is a helper function that performs an action on a universe instance,
114
+ // returning a generic result .
115
+ func withUni [T any ](fetcher uniFetcher , id Identifier ,
116
116
f uniAction [T ]) (T , error ) {
117
117
118
- baseUni := fetcher .fetchUniverse (id )
119
-
120
- return f (baseUni )
118
+ uni := fetcher .fetchUniverse (id )
119
+ return f (uni )
121
120
}
122
121
123
122
// RootNode returns the root node of the base universe corresponding to the
@@ -705,7 +704,7 @@ func (a *Archive) MintingLeaves(ctx context.Context,
705
704
log .Debugf ("Retrieving all leaves for Universe: id=%v" ,
706
705
id .StringForLog ())
707
706
708
- return withBaseUni (
707
+ return withUni (
709
708
a , id , func (baseUni BaseBackend ) ([]Leaf , error ) {
710
709
return baseUni .MintingLeaves (ctx )
711
710
},
You can’t perform that action at this time.
0 commit comments