From 1b8aa4ac55cdedd60de405369cf50322f5be8637 Mon Sep 17 00:00:00 2001 From: Morb0 Date: Wed, 6 Jan 2021 19:38:58 +0300 Subject: [PATCH] refactor(metadata-accessor): remove comment & use short checking --- lib/services/metadata-accessor.service.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/services/metadata-accessor.service.ts b/lib/services/metadata-accessor.service.ts index 62a785d..75fb79c 100644 --- a/lib/services/metadata-accessor.service.ts +++ b/lib/services/metadata-accessor.service.ts @@ -12,17 +12,12 @@ export class MetadataAccessorService { constructor(private readonly reflector: Reflector) {} isUpdate(target: Function): boolean { - // TODO: We really need this check? - if (!target) { - return false; - } + if (!target) return false; return !!this.reflector.get(UPDATE_METADATA, target); } isScene(target: Function): boolean { - if (!target) { - return false; - } + if (!target) return false; return !!this.reflector.get(SCENE_METADATA, target); }