From: Cr <631807682@qq.com> Date: Sat, 12 Oct 2019 14:46:10 +0000 (+0800) Subject: chore: remove redundant type cast (#230) X-Git-Tag: v3.0.0-alpha.0~475 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=64c7be3763f0c2ee72f83e0fe09129e7887d033d;p=thirdparty%2Fvuejs%2Fcore.git chore: remove redundant type cast (#230) --- diff --git a/packages/runtime-core/__tests__/helpers/toHandlers.spec.ts b/packages/runtime-core/__tests__/helpers/toHandlers.spec.ts index a71ef3893f..e07cf14169 100644 --- a/packages/runtime-core/__tests__/helpers/toHandlers.spec.ts +++ b/packages/runtime-core/__tests__/helpers/toHandlers.spec.ts @@ -5,8 +5,8 @@ describe('toHandlers', () => { mockWarn() it('should not accept non-objects', () => { - toHandlers((null as unknown) as any) - toHandlers((undefined as unknown) as any) + toHandlers(null as any) + toHandlers(undefined as any) expect( 'v-on with no argument expects an object value.'