Skip to content

Commit bfe997b

Browse files
committed
Fix eslint error
1 parent a333bb0 commit bfe997b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

toolbar-button/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ export class ButtonExtension
5656
panel: NotebookPanel,
5757
context: DocumentRegistry.IContext<INotebookModel>
5858
): IDisposable {
59-
let clearOutput = () => {
59+
const clearOutput = () => {
6060
NotebookActions.clearAllOutputs(panel.content);
6161
};
62-
let button = new ToolbarButton({
62+
const button = new ToolbarButton({
6363
className: 'clear-output-button',
6464
label: 'Clear All Outputs',
6565
onClick: clearOutput,

toolbar-button/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ export class ButtonExtension
3636
panel: NotebookPanel,
3737
context: DocumentRegistry.IContext<INotebookModel>
3838
): IDisposable {
39-
let clearOutput = () => {
39+
const clearOutput = () => {
4040
NotebookActions.clearAllOutputs(panel.content);
4141
};
42-
let button = new ToolbarButton({
42+
const button = new ToolbarButton({
4343
className: 'clear-output-button',
4444
label: 'Clear All Outputs',
4545
onClick: clearOutput,

0 commit comments

Comments
 (0)