Browse Source

Removes needless check

main
Eric Amodio 4 years ago
parent
commit
71bf23ec9d
6 changed files with 1 additions and 6 deletions
  1. +0
    -1
      src/views/compareView.ts
  2. +0
    -1
      src/views/fileHistoryView.ts
  3. +0
    -1
      src/views/lineHistoryView.ts
  4. +0
    -1
      src/views/repositoriesView.ts
  5. +0
    -1
      src/views/searchView.ts
  6. +1
    -1
      src/views/viewBase.ts

+ 0
- 1
src/views/compareView.ts View File

@ -70,7 +70,6 @@ export class CompareView extends ViewBase {
protected onConfigurationChanged(e: ConfigurationChangeEvent) {
if (
!configuration.changed(e, 'views', 'compare') &&
!configuration.changed(e, 'views') &&
!configuration.changed(e, 'defaultDateFormat') &&
!configuration.changed(e, 'defaultDateSource') &&

+ 0
- 1
src/views/fileHistoryView.ts View File

@ -54,7 +54,6 @@ export class FileHistoryView extends ViewBase {
protected onConfigurationChanged(e: ConfigurationChangeEvent) {
if (
!configuration.changed(e, 'views', 'fileHistory') &&
!configuration.changed(e, 'views') &&
!configuration.changed(e, 'defaultDateFormat') &&
!configuration.changed(e, 'defaultDateSource') &&

+ 0
- 1
src/views/lineHistoryView.ts View File

@ -53,7 +53,6 @@ export class LineHistoryView extends ViewBase {
protected onConfigurationChanged(e: ConfigurationChangeEvent) {
if (
!configuration.changed(e, 'views', 'lineHistory') &&
!configuration.changed(e, 'views') &&
!configuration.changed(e, 'defaultDateFormat') &&
!configuration.changed(e, 'defaultDateSource') &&

+ 0
- 1
src/views/repositoriesView.ts View File

@ -114,7 +114,6 @@ export class RepositoriesView extends ViewBase {
protected onConfigurationChanged(e: ConfigurationChangeEvent) {
if (
!configuration.changed(e, 'views', 'repositories') &&
!configuration.changed(e, 'views') &&
!configuration.changed(e, 'defaultDateFormat') &&
!configuration.changed(e, 'defaultDateSource') &&

+ 0
- 1
src/views/searchView.ts View File

@ -65,7 +65,6 @@ export class SearchView extends ViewBase {
protected onConfigurationChanged(e: ConfigurationChangeEvent) {
if (
!configuration.changed(e, 'views', 'search') &&
!configuration.changed(e, 'views') &&
!configuration.changed(e, 'defaultDateFormat') &&
!configuration.changed(e, 'defaultDateSource') &&

+ 1
- 1
src/views/viewBase.ts View File

@ -96,7 +96,7 @@ export abstract class ViewBase> implements TreeData
protected abstract onConfigurationChanged(e: ConfigurationChangeEvent): void;
protected initialize(container?: string, options: { showCollapseAll?: boolean } = {}) {
if (this._disposable) {
if (this._disposable != null) {
this._disposable.dispose();
this._onDidChangeTreeData = new EventEmitter<ViewNode>();
}

Loading…
Cancel
Save