mirror of
https://github.com/gissleh/irc.git
synced 2026-10-20 12:02:54 +00:00
client: Changed Value to return the value only, not value and ok
This commit is contained in:
@@ -376,12 +376,11 @@ func (client *Client) EmitInput(line string, target Target) context.Context {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Value gets a client value.
|
// Value gets a client value.
|
||||||
func (client *Client) Value(key string) (v interface{}, ok bool) {
|
func (client *Client) Value(key string) interface{} {
|
||||||
client.mutex.RLock()
|
client.mutex.RLock()
|
||||||
v, ok = client.values[key]
|
defer client.mutex.RUnlock()
|
||||||
client.mutex.RUnlock()
|
|
||||||
|
|
||||||
return
|
return client.values[key]
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetValue sets a client value.
|
// SetValue sets a client value.
|
||||||
|
|||||||
Reference in New Issue
Block a user