Skip to content

Commit

Permalink
fix: linter problems - #125
Browse files Browse the repository at this point in the history
  • Loading branch information
allaboutmeme committed Dec 22, 2024
1 parent 520bb8c commit c451a97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/flowr/internal-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { DEFAULT_DATAFLOW_PIPELINE, DEFAULT_NORMALIZE_PIPELINE, DEFAULT_SLICING_
import { requestFromInput } from '@eagleoutice/flowr/r-bridge/retriever'
import { normalizedAstToMermaid } from '@eagleoutice/flowr/util/mermaid/ast'
import { cfgToMermaid } from '@eagleoutice/flowr/util/mermaid/cfg'
import vscode from 'vscode';
import vscode from 'vscode'

export class FlowrInternalSession implements FlowrSession {

Expand Down Expand Up @@ -144,7 +144,7 @@ export class FlowrInternalSession implements FlowrSession {
request: requestFromInput(consolidateNewlines(document.getText()))
}).allRemainingSteps()
return normalizedAstToMermaid(result.normalize.ast)
});
})
}

async retrieveCfgMermaid(document: vscode.TextDocument): Promise<string> {
Expand All @@ -158,7 +158,7 @@ export class FlowrInternalSession implements FlowrSession {
request: requestFromInput(consolidateNewlines(document.getText()))
}).allRemainingSteps()
return cfgToMermaid(extractCFG(result.normalize), result.normalize)
});
})
}

private async extractSlice(shell: RShell, document: vscode.TextDocument, positions: vscode.Position[]): Promise<SliceReturn> {
Expand Down
8 changes: 3 additions & 5 deletions src/position-slicer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import type { DecoTypes } from './slice'
import { displaySlice, makeSliceDecorationTypes } from './slice'
import { getSelectionSlicer } from './selection-slicer'
import { Settings } from './settings'
import { get } from 'http'
import { clear } from 'console'

const positionSlicerAuthority = 'doc-slicer'
const positionSlicerSuffix = 'Slice'
Expand Down Expand Up @@ -237,7 +235,7 @@ export class PositionSlicer {
}
}

private showErrors = true;
private showErrors = true

protected async updateSlices(): Promise<string | undefined> {
// Update the decos that show the slice results
Expand All @@ -254,7 +252,7 @@ export class PositionSlicer {
if(this.showErrors){
setTimeout(() => this.setShowErrors(), getConfig().get<number>(Settings.ErrorMessageTimer))
}
this.showErrors = false;
this.showErrors = false
return
}

Expand All @@ -272,7 +270,7 @@ export class PositionSlicer {
this.sliceDecos = undefined
}
private setShowErrors(): void{
this.showErrors = true;
this.showErrors = true
}
}

Expand Down

0 comments on commit c451a97

Please sign in to comment.