Skip to content

Commit

Permalink
Fix hygiene
Browse files Browse the repository at this point in the history
  • Loading branch information
lszomoru committed Apr 22, 2022
1 parent 1b8ca28 commit c2752e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions extensions/git/src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ export class Git {
return Versions.compare(Versions.fromString(this.version), Versions.fromString(version));
}

open(repository: string, dotGit: { path: string, commonPath?: string }): Repository {
open(repository: string, dotGit: { path: string; commonPath?: string }): Repository {
return new Repository(this, repository, dotGit);
}

Expand Down Expand Up @@ -509,7 +509,7 @@ export class Git {
return repoPath;
}

async getRepositoryDotGit(repositoryPath: string): Promise<{ path: string, commonPath?: string }> {
async getRepositoryDotGit(repositoryPath: string): Promise<{ path: string; commonPath?: string }> {
const result = await this.exec(repositoryPath, ['rev-parse', '--git-dir', '--git-common-dir']);
let [dotGitPath, commonDotGitPath] = result.stdout.split('\n').map(r => r.trim());

Expand Down Expand Up @@ -873,7 +873,7 @@ export class Repository {
constructor(
private _git: Git,
private repositoryRoot: string,
readonly dotGit: { path: string, commonPath?: string }
readonly dotGit: { path: string; commonPath?: string }
) { }

get git(): Git {
Expand Down
4 changes: 2 additions & 2 deletions extensions/git/src/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ export class Repository implements Disposable {
return this.repository.root;
}

get dotGit(): { path: string, commonPath?: string } {
get dotGit(): { path: string; commonPath?: string } {
return this.repository.dotGit;
}

Expand Down Expand Up @@ -874,7 +874,7 @@ export class Repository implements Disposable {
this.disposables.push(dotGitFileWatcher);
} catch (err) {
if (Log.logLevel <= LogLevel.Error) {
outputChannel.appendLine(`${logTimestamp()} Failed to watch '${this.dotGit.path}', reverting to legacy API file watched. Some events might be lost.\n${err.stack || err}`);
outputChannel.appendLine(`${logTimestamp()} Failed to watch path:'${this.dotGit.path}' or commonPath:'${this.dotGit.commonPath}', reverting to legacy API file watched. Some events might be lost.\n${err.stack || err}`);
}

onRepositoryDotGitFileChange = filterEvent(onRepositoryFileChange, uri => /\.git($|\/)/.test(uri.path));
Expand Down

0 comments on commit c2752e6

Please sign in to comment.