Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 27, 2024
1 parent 9385c42 commit 4d450a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clients/vscode/src/chat/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function chatPanelFilepathToLocalUri(filepath: Filepath, gitProvider: Git
try {
if (isNotebook) {
const handle = chatPanelFilePathToNotebookCellHandle(filepath.uri);
if (typeof handle === 'number') {
if (typeof handle === "number") {
return generateLocalNotebookCellUri(Uri.parse(filepath.uri), handle);
}
}
Expand Down Expand Up @@ -110,7 +110,7 @@ function chatPanelFilepathToVscodeNotebookCellUri(root: Uri, filepath: FilepathI
const filePathUri = Uri.parse(filepath.filepath);
const notebookUri = Uri.joinPath(root, filePathUri.path);

const handle = chatPanelFilePathToNotebookCellHandle(filepath.filepath)
const handle = chatPanelFilePathToNotebookCellHandle(filepath.filepath);
if (typeof handle === "undefined") {
logger.warn(`Invalid filepath params.`, filepath);
return null;
Expand All @@ -130,10 +130,10 @@ function chatPanelFilePathToNotebookCellHandle(filepath: string): number | undef
}

if (typeof handle === "undefined" || isNaN(handle)) {
return undefined
return undefined;
}

return handle
return handle;
}

export function vscodePositionToChatPanelPosition(position: VSCodePosition): ChatPanelPosition {
Expand Down

0 comments on commit 4d450a4

Please sign in to comment.