Updated account threshold test

This commit is contained in:
Trial97
2021-07-19 09:33:27 +03:00
committed by Dan Christian Bogos
parent 7e7657b30d
commit 2a6f2c140a
4 changed files with 8 additions and 5 deletions

View File

@@ -175,9 +175,9 @@ func (gl *GuardianLocker) GuardIDs(refID string, timeout time.Duration, lkIDs ..
}
// UnguardIDs attempts to unlock a set of locks based on their reference ID received on lock
func (gl *GuardianLocker) UnguardIDs(refID string) (_ []string) {
if refID == "" {
return
func (gl *GuardianLocker) UnguardIDs(refID string) []string {
if refID != "" {
return gl.unlockWithReference(refID)
}
return gl.unlockWithReference(refID)
return nil
}