Fix lint errors
Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
@@ -62,7 +62,7 @@ export default class ComponentsTreeDataProvider implements TreeDataProvider<Gith
|
||||
items.push(new ComponentTreeItem(component));
|
||||
}
|
||||
|
||||
await commands.executeCommand('setContext', 'githubLocalActions:noComponents', items.length == 0);
|
||||
await commands.executeCommand('setContext', 'githubLocalActions:noComponents', items.length === 0);
|
||||
return items;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ export default class HistoryTreeItem extends TreeItem implements GithubLocalActi
|
||||
if (history.date.end) {
|
||||
endTime = history.date.end;
|
||||
totalDuration = Utils.getTimeDuration(history.date.start, endTime);
|
||||
} else if (history.status == HistoryStatus.Running) {
|
||||
} else if (history.status === HistoryStatus.Running) {
|
||||
endTime = new Date().toString();
|
||||
totalDuration = Utils.getTimeDuration(history.date.start, endTime);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user