Adjusted styling, fixed linting warning

This commit is contained in:
Luke Hagar
2024-05-22 16:58:29 -05:00
parent 463db147ff
commit d15cd9913e
2 changed files with 7 additions and 7 deletions

View File

@@ -140,7 +140,7 @@ export const isValidPath = (path: string) => {
const pathRegex = /(\/[a-zA-Z-]+)+|\//gm;
const pathParts = pathWithoutVariables.match(pathRegex);
// the fallback is to return false if the pathParts array is null
return pathParts?.length === 1 ?? false;
return pathParts?.length === 1 ? true : false;
};
/// sorts the paths in the OpenAPI document alphabetically