Explorar o código

chore: remove redundant type cast (#230)

Cr %!s(int64=6) %!d(string=hai) anos
pai
achega
64c7be3763
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      packages/runtime-core/__tests__/helpers/toHandlers.spec.ts

+ 2 - 2
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.'