mirror of
https://github.com/status-im/consul.git
synced 2025-02-23 19:08:22 +00:00
Makes an empty prepared query list an empty slice, not a nil one.
This commit is contained in:
parent
34b685cb4c
commit
c955799baf
@ -243,7 +243,7 @@ func (s *StateStore) PreparedQueryList() (uint64, structs.PreparedQueries, error
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Go over all of the queries and build the response.
|
// Go over all of the queries and build the response.
|
||||||
var result structs.PreparedQueries
|
result := make(structs.PreparedQueries, 0)
|
||||||
for query := queries.Next(); query != nil; query = queries.Next() {
|
for query := queries.Next(); query != nil; query = queries.Next() {
|
||||||
result = append(result, query.(*structs.PreparedQuery))
|
result = append(result, query.(*structs.PreparedQuery))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user