Skip to content

Commit cb0238d

Browse files
committed
nit: shorten expression
1 parent 17a6987 commit cb0238d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/SpringValue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export class SpringValue<T = any, P extends string = string>
237237
/** Update this value's animation using the given props. */
238238
animate(to: PendingProps<T> | Animatable<T>, arg2?: PendingProps<T>) {
239239
this._checkDisposed('animate')
240-
const props = is.obj(to) ? to : ({ ...arg2, to: to } as any)
240+
const props = is.obj(to) ? to : ({ ...arg2, to } as any)
241241

242242
// Ensure the initial value can be accessed by animated components.
243243
const range = this.getRange(props)

0 commit comments

Comments
 (0)