Fix lint errors

Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
Sanjula Ganepola
2024-11-17 00:27:23 -05:00
parent 76aa12bdc5
commit 5cccb79745
4 changed files with 8 additions and 8 deletions

View File

@@ -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;
}
}

View File

@@ -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);
}