Skip to content

Commit 614b008

Browse files
author
Gleb Ivanov
committed
fixed codestyle
1 parent 49e9c90 commit 614b008

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/reflect.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ function shallowCopy(from: VueConstructor, to: VueConstructor, propertyKeys: Str
2828
for (const propertyKey in propertyKeys) {
2929
propertyKeys[propertyKey].forEach((metadataKey) => {
3030
if (propertyKey == 'constructor') {
31-
const metadata = Reflect.getOwnMetadata(metadataKey, from)
32-
Reflect.defineMetadata(metadataKey, metadata, to)
31+
const metadata = Reflect.getOwnMetadata(metadataKey, from)
32+
Reflect.defineMetadata(metadataKey, metadata, to)
3333
} else {
34-
const metadata = Reflect.getOwnMetadata(metadataKey, from, propertyKey)
35-
Reflect.defineMetadata(metadataKey, metadata, to, propertyKey)
34+
const metadata = Reflect.getOwnMetadata(metadataKey, from, propertyKey)
35+
Reflect.defineMetadata(metadataKey, metadata, to, propertyKey)
3636
}
3737
})
3838
}

test/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ describe('vue-class-component', () => {
373373

374374
it('copies reflection metadata', function () {
375375
const trickyDecorator = (proto: Vue, _: string) =>
376-
Reflect.defineMetadata('worksConstructor', true, proto.constructor);
376+
Reflect.defineMetadata('worksConstructor', true, proto.constructor)
377377

378378
@Component
379379
class Test extends Vue {

0 commit comments

Comments
 (0)