mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
parent
77e1ce431a
commit
d6681dfb53
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue