mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 15:48:44 +05:00
Replace interface{} with any
This commit is contained in:
committed by
Dan Christian Bogos
parent
1d7bd1389b
commit
113e2a2bdf
@@ -143,7 +143,7 @@ func (s StringSet) Equals(s2 StringSet) bool {
|
||||
func (s StringSet) String() string { return ToJSON(s.AsSlice()) }
|
||||
|
||||
// FieldAsInterface returns an empty structure if the path exists else ErrNotFound
|
||||
func (s StringSet) FieldAsInterface(fldPath []string) (interface{}, error) {
|
||||
func (s StringSet) FieldAsInterface(fldPath []string) (any, error) {
|
||||
if len(fldPath) != 1 {
|
||||
return nil, ErrNotFound
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user