mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 09:47:46 +03:00
Чистка.
Удалены неиспользуемые функции. Были исправлены несоблюдения стиля кода.
This commit is contained in:
@@ -11,10 +11,10 @@ export class ObjectIdPipe implements PipeTransform<any, string> {
|
||||
)
|
||||
throw new BadRequestException("Invalid ObjectId");
|
||||
|
||||
const return_string = value.toLowerCase();
|
||||
if (!/^[0-9a-f]{24}$/.test(return_string))
|
||||
const returnString = value.toLowerCase();
|
||||
if (!/^[0-9a-f]{24}$/.test(returnString))
|
||||
throw new BadRequestException("Invalid ObjectId");
|
||||
|
||||
return return_string;
|
||||
return returnString;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user