Skip to content

Commit cadba02

Browse files
committed
Fix typo
1 parent bdee9f8 commit cadba02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/linter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default class Linter {
4747

4848
diags.push({
4949
message: formatMessage(comment),
50-
severity: mapServerity(comment.level),
50+
severity: mapSeverity(comment.level),
5151
code: comment.code,
5252
source: 'shellcheck',
5353
range: { start, end },
@@ -196,5 +196,5 @@ const severityMapping: Record<string, undefined | LSP.DiagnosticSeverity> = {
196196

197197
// Severity mappings:
198198
// https://github.com/koalaman/shellcheck/blob/364c33395e2f2d5500307f01989f70241c247d5a/src/ShellCheck/Formatter/Format.hs#L50
199-
const mapServerity = (sev: string) => severityMapping[sev] || LSP.DiagnosticSeverity.Error
199+
const mapSeverity = (sev: string) => severityMapping[sev] || LSP.DiagnosticSeverity.Error
200200

0 commit comments

Comments
 (0)