Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhang-gh authored and Sean10 committed Sep 13, 2020
1 parent 4344ab6 commit abf326a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/formatting.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import { commands, env, ExtensionContext, Position, Range, Selection, SnippetString, TextDocument, TextEditor, window, workspace, WorkspaceEdit,EndOfLine } from 'vscode';
import { commands, env, EndOfLine, ExtensionContext, Position, Range, Selection, SnippetString, TextDocument, TextEditor, window, workspace, WorkspaceEdit } from 'vscode';
import { fixMarker } from './listEditing';

export function activate(context: ExtensionContext) {
Expand Down Expand Up @@ -54,7 +54,7 @@ enum QuoteState {
}

function getQuoteState(lineArray: Array<string>): QuoteState {
return lineArray.every((line)=>{ return line.startsWith(">"); }) ? QuoteState.FULLQUOTED : QuoteState.PARTIALQUOTED;
return lineArray.every(line => line.startsWith('>')) ? QuoteState.FULLQUOTED : QuoteState.PARTIALQUOTED;
}

function quoteLine(line: string): string {
Expand Down

0 comments on commit abf326a

Please sign in to comment.