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); }