Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 27, 2023
1 parent 8ca6c22 commit 72b0a6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/leftPanel/data/dataPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { DatasetsWidget } from './datasetsWidget';
import { SubsetsWidget } from './subsetsWidget';
import { IControlPanelModel } from '../../types';


export class DataPanel extends SidePanel {
constructor(options: {
model: IControlPanelModel;
Expand All @@ -31,7 +30,7 @@ export class DataPanel extends SidePanel {
}

const output = await FileDialog.getOpenFiles({
title: "Load Data Files Into Glue Session",
title: 'Load Data Files Into Glue Session',
manager: options.manager
});

Expand All @@ -46,7 +45,9 @@ export class DataPanel extends SidePanel {
}

for (const file of output.value) {
const filePath = file.path.includes(':') ? file.path.split(':')[1] : file.path;
const filePath = file.path.includes(':')
? file.path.split(':')[1]
: file.path;
const code = `
GLUE_SESSION.add_data("${filePath}")
`;
Expand Down
2 changes: 1 addition & 1 deletion src/leftPanel/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ export namespace LeftPanelWidget {
tracker: IGlueSessionTracker;
commands: CommandRegistry;
rendermime: IRenderMimeRegistry;
manager: IDocumentManager
manager: IDocumentManager;
}
}

0 comments on commit 72b0a6b

Please sign in to comment.