Skip to content

Commit

Permalink
cleanup: remove unecessary constructor for LockedCodeError
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSaba committed Dec 12, 2024
1 parent 28be49e commit 5cfb9f1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/tools/utils/editorOperationUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@ import * as monaco from 'monaco-editor'
import { ValidAnnotatedEditOperation } from 'vscode/vscode/vs/editor/common/model'
import { excludeRanges } from './rangeUtils'

export class LockedCodeError extends Error {
constructor (message: string) {
super(message)
this.name = 'LockedCodeError'
Object.setPrototypeOf(this, LockedCodeError.prototype)
}
}
export class LockedCodeError extends Error {}

function createNewOperation (
oldOperation: ValidAnnotatedEditOperation,
Expand Down

0 comments on commit 5cfb9f1

Please sign in to comment.