checkKey function that accepts a string parameter key and returns error if key is empty. # It returns nil otherwise Parameters: key : A string that is checked if empty Returns: error : _const.ErrKeyIsEmpty if key is empty, nil otherwise
(key string)
| 1097 | // |
| 1098 | // error : _const.ErrKeyIsEmpty if key is empty, nil otherwise |
| 1099 | func checkKey(key string) error { |
| 1100 | if len(key) == 0 { |
| 1101 | return _const.ErrKeyIsEmpty |
| 1102 | } |
| 1103 | return nil |
| 1104 | } |
| 1105 | |
| 1106 | // setZSetToDB writes a FZSet object to the database. |
| 1107 | // |
no outgoing calls
no test coverage detected