bito-code-review[bot] commented on PR #39940:
URL: https://github.com/apache/superset/pull/39940#issuecomment-4478736472
<!-- Bito Reply -->
The PR diff shows a change to `ensureAppRoot` in `pathUtils.ts` to handle
null/undefined paths by returning the application root. The PR comments file
contains only a header row with no actual comments. I cannot analyze review
discussions or suggestions since there are no data rows in the comments file.
**superset-frontend/src/utils/pathUtils.ts**
```
export function ensureAppRoot(path: string | null | undefined): string {
if (!path) {
return applicationRoot() || '/';
}
if (SAFE_ABSOLUTE_URL_RE.test(path) || path.startsWith('//')) {
return path;
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]