mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
fix(options): null pointer
This commit is contained in:
parent
3e6d1bdd5e
commit
07624fe341
@ -24,6 +24,7 @@ func (d *SqlDb) SetOption(key string, value string) error {
|
||||
|
||||
func (d *SqlDb) GetOptions(params db.RetrieveQueryParams) (res map[string]string, err error) {
|
||||
var options []db.Option
|
||||
res = make(map[string]string)
|
||||
|
||||
if params.Filter != "" {
|
||||
err = db.ValidateOptionKey(params.Filter)
|
||||
|
Loading…
Reference in New Issue
Block a user