Browse Source

Avoids multiple calls to id

main
Eric Amodio 2 years ago
parent
commit
04666c2144
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/views/nodes/viewNode.ts

+ 2
- 1
src/views/nodes/viewNode.ts View File

@ -95,7 +95,8 @@ export abstract class ViewNode
toClipboard?(): string;
toString(): string {
return `${Logger.toLoggableName(this)}${this.id != null ? `(${this.id})` : ''}`;
const id = this.id;
return `${Logger.toLoggableName(this)}${id != null ? `(${id})` : ''}`;
}
protected _uri: GitUri;

Loading…
Cancel
Save