mirror of
https://github.com/ent/ent.git
synced 2026-04-28 21:50:56 +03:00
all: gofmt -w -r 'interface{} -> any' (#2874)
This commit is contained in:
@@ -292,7 +292,7 @@ func (e *state) field(f *entql.Field) string {
|
||||
}
|
||||
|
||||
func args(b *sql.Builder, v *entql.Value) {
|
||||
vs, ok := v.V.([]interface{})
|
||||
vs, ok := v.V.([]any)
|
||||
if !ok {
|
||||
b.Arg(v.V)
|
||||
return
|
||||
@@ -301,7 +301,7 @@ func args(b *sql.Builder, v *entql.Value) {
|
||||
}
|
||||
|
||||
// expect panics if the condition is false.
|
||||
func expect(cond bool, msg string, args ...interface{}) {
|
||||
func expect(cond bool, msg string, args ...any) {
|
||||
if !cond {
|
||||
panic(evalError{fmt.Sprintf("expect "+msg, args...)})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user