Skip to content

Commit 1978f85

Browse files
committed
fix linter issues
1 parent 70da9c7 commit 1978f85

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/browser/svgGenerator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
let removedBranches = 0;
123123
let branchFound = i === startAt ? true : false;
124124
let padParentCount = 0;
125-
for (let j = 0; j < branches.length;) {
125+
for (let j = 0; j < branches.length; ) {
126126
let branch = branches[j];
127127
if (branch.sha1 === entry.sha1.full) {
128128
branchFound = true;

src/commands/fileHistory.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getGitRepositoryPath } from '../helpers/gitPaths';
33
import * as historyUtil from '../helpers/historyUtils';
44
import * as path from 'path';
55
import * as tmp from 'tmp';
6-
import { decode as htmlDecode } from 'he';
6+
import { decode as htmlDecode } from 'he';
77
import * as logger from '../logger';
88
import { formatDate } from '../helpers/logParser';
99
import * as fs from 'fs';
@@ -114,7 +114,7 @@ async function onItemSelected(item: vscode.QuickPickItem, fileName: string, rela
114114
if (thisFile !== 'fileUnavailable' && fs.existsSync(fileName)) {
115115
itemPickList.push({ label: 'Compare against workspace file', description: '' });
116116
}
117-
if (previousFile !== 'fileUnavailable' && thisFile !== 'fileUnavailable') {
117+
if (previousFile !== 'fileUnavailable' && thisFile !== 'fileUnavailable') {
118118
itemPickList.push({ label: 'Compare against previous version', description: '' });
119119
}
120120

@@ -168,10 +168,10 @@ function viewLog(details: any) {
168168

169169
function diffFiles(fileName: string, sourceFile: string, sourceSha1: string, destinationFile: string, destinationSha1: string) {
170170
try {
171-
const sourceFormattedSha1 = `(${sourceSha1.substring(0,7)})`;
172-
const destinationFormattedSha1 = destinationSha1 !== '' ? `(${destinationSha1.substring(0,7)})` : '';
171+
const sourceFormattedSha1 = `(${sourceSha1.substring(0, 7)})`;
172+
const destinationFormattedSha1 = destinationSha1 !== '' ? `(${destinationSha1.substring(0, 7)})` : '';
173173
vscode.commands.executeCommand('vscode.diff', vscode.Uri.file(sourceFile), vscode.Uri.file(destinationFile),
174-
`${path.basename(fileName)} ${sourceFormattedSha1}${path.basename(fileName)} ${destinationFormattedSha1}`);
174+
`${path.basename(fileName)} ${sourceFormattedSha1}${path.basename(fileName)} ${destinationFormattedSha1}`);
175175
}
176176
catch (error) {
177177
logger.logError(error);

src/helpers/logParser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export function parseLogEntry(lines: string[]): LogEntry | null {
181181
// remove the leading (
182182
if (index === 0) {
183183
item = item.trim().substring(1);
184-
// remove the trailing (
184+
// remove the trailing (
185185
if (items.length === 1) {
186186
item = item.substring(0, item.length - 2);
187187
}
@@ -309,6 +309,6 @@ function parseAuthCommitter(details: string): ActionedDetails {
309309

310310
export function formatDate(date: Date) {
311311
let lang = vscode.env.language;
312-
let dateOptions = { weekday: 'short', day: 'numeric', month: 'short' , year: 'numeric', hour : 'numeric', minute : 'numeric' };
312+
let dateOptions = { weekday: 'short', day: 'numeric', month: 'short', year: 'numeric', hour: 'numeric', minute: 'numeric' };
313313
return date.toLocaleString(lang, dateOptions);
314314
}

0 commit comments

Comments
 (0)