🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Combined multiple appends into a single one (#1464)
BIKI DASda26c5cfe00c
diff --git a/model/criteria/operators.go b/model/criteria/operators.goindex ac81348bf..2ebca2b61 100644--- a/model/criteria/operators.go+++ b/model/criteria/operators.go@@ -161,8 +161,10 @@ func (itr InTheRange) ToSql() (sql string, args []interface{}, err error) {if s.Kind() != reflect.Slice || s.Len() != 2 {return "", nil, fmt.Errorf("invalid range for 'in' operator: %s", v)}- and = append(and, squirrel.GtOrEq{f: s.Index(0).Interface()})- and = append(and, squirrel.LtOrEq{f: s.Index(1).Interface()})+ and = append(and,+ squirrel.GtOrEq{f: s.Index(0).Interface()},+ squirrel.LtOrEq{f: s.Index(1).Interface()},+ )}return and.ToSql()}