mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-01-11 14:48:10 +03:00
refactor(metadata-accessor): remove comment & use short checking
This commit is contained in:
parent
4ada932d4e
commit
1b8aa4ac55
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user