Skip to content

Commit

Permalink
update!: modified the return of Uses function to void
Browse files Browse the repository at this point in the history
  • Loading branch information
sttk committed Oct 14, 2023
1 parent 3335a4d commit 3bafde5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dax.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ var (
// If a DaxSrc is tried to register with a name already registered, it is
// ignored and a DaxSrc registered with the same name first is used.
// And this method ignore adding new DaxSrc(s) after Setup or beginning of Txn.
func Uses(name string, ds DaxSrc) errs.Err {
func Uses(name string, ds DaxSrc) {
if isGlobalDaxSrcsFixed {
return errs.Ok()
return
}

ent := &daxSrcEntry{name: name, ds: ds}
Expand All @@ -155,8 +155,6 @@ func Uses(name string, ds DaxSrc) errs.Err {
globalDaxSrcEntryList.last.next = ent
globalDaxSrcEntryList.last = ent
}

return errs.Ok()
}

// Setup is the function that make all globally registered DaxSrc(s) usable.
Expand Down

0 comments on commit 3bafde5

Please sign in to comment.