fix: unlock method signature to return error

This commit is contained in:
Dmitry Ng
2023-05-02 09:50:33 +03:00
parent 140cd9b68f
commit ca1b651b11
+2 -2
View File
@@ -18,8 +18,8 @@ func (L *State) Lock() {
L.r.Lock()
}
func (L *State) Unlock() {
L.r.Unlock()
func (L *State) Unlock() error {
return L.r.Unlock()
}
func abs(v int) int {