Format new code with prettier

This commit is contained in:
Luuk Scholten 2018-11-05 14:04:01 +01:00
parent b7b6e84322
commit cb5602748d

View File

@ -141,7 +141,11 @@ export function isNamedDefinition(pointer?: string): boolean {
return /^#\/components\/schemas\/[^\/]+$/.test(pointer || ''); return /^#\/components\/schemas\/[^\/]+$/.test(pointer || '');
} }
function humanizeRangeConstraint(description: string, min: number | undefined, max: number | undefined): string | undefined { function humanizeRangeConstraint(
description: string,
min: number | undefined,
max: number | undefined,
): string | undefined {
let stringRange; let stringRange;
if (min !== undefined && max !== undefined) { if (min !== undefined && max !== undefined) {
if (min === max) { if (min === max) {