From 785b20639f0b9edcbdffbe40f59c25ad53a4cf5c Mon Sep 17 00:00:00 2001 From: Peng Lyu Date: Tue, 3 Apr 2018 20:39:35 -0700 Subject: [PATCH] Format. --- extensions/git-extended/src/common/diff.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/git-extended/src/common/diff.ts b/extensions/git-extended/src/common/diff.ts index 8df56f3268a..8f21b6c2ad8 100644 --- a/extensions/git-extended/src/common/diff.ts +++ b/extensions/git-extended/src/common/diff.ts @@ -2,6 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ + import * as path from 'path'; import { getFileContent, writeTmpFile } from './file'; import { GitChangeType, RichFileChange } from './models/file'; @@ -86,7 +87,7 @@ export async function parseDiff(text: string, repository: Repository, parentComm let match = reg.exec(text); let richFileChanges: RichFileChange[] = []; - while(match) { + while (match) { let singleFileDiff = match[0]; let modifyDiffInfo = MODIFY_DIFF_INFO.exec(singleFileDiff); if (modifyDiffInfo) { -- GitLab