missing parens

related to #138605
This commit is contained in:
Joao Moreno 2021-12-08 16:29:32 +01:00
parent 77e1ce431a
commit d6681dfb53
No known key found for this signature in database
GPG key ID: 896B853774D1A575

View file

@ -95,7 +95,7 @@ class SCMInput implements ISCMInput {
const history = JSON.parse(storageService.get(key, StorageScope.GLOBAL, '[]'));
if (Array.isArray(history)) {
if (history.length === 0 || history.length === 1 && history[0] === '') {
if (history.length === 0 || (history.length === 1 && history[0] === '')) {
// remove empty histories
storageService.remove(key, StorageScope.GLOBAL);
} else {