mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Replace interface{} with any
This commit is contained in:
committed by
Dan Christian Bogos
parent
97c3dab0f4
commit
6c16ff320f
@@ -210,8 +210,8 @@ func (sqls *SQLStorage) GetTpTableIds(tpid, table string, distinct utils.TPDisti
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
vals := make([]string, len(cols)) // Allocate enough values
|
||||
ints := make([]interface{}, len(cols)) // Make a slice of []interface{}
|
||||
vals := make([]string, len(cols)) // Allocate enough values
|
||||
ints := make([]any, len(cols)) // Make a slice of []any
|
||||
for i := range ints {
|
||||
ints[i] = &vals[i] // Copy references into the slice
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user