mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-02 17:23:40 -05:00
Strict Null Checks on platform/accounts (#6735)
* add some patches for strict null * renable strict null checks * wip * finish adding account to strict nulls * fix backup component * wip * fix tests
This commit is contained in:
@@ -89,7 +89,7 @@ export default class AccountStore implements IAccountStore {
|
||||
activeOperation = activeOperation.then(op);
|
||||
|
||||
// Add a catch at the end to make sure we can continue after any errors
|
||||
activeOperation = activeOperation.then(null, (err) => {
|
||||
activeOperation = activeOperation.then(undefined, (err) => {
|
||||
// TODO: Log the error
|
||||
});
|
||||
|
||||
@@ -107,7 +107,7 @@ export default class AccountStore implements IAccountStore {
|
||||
accountAdded: false,
|
||||
accountModified: false,
|
||||
accountRemoved: false,
|
||||
changedAccount: null,
|
||||
changedAccount: undefined,
|
||||
updatedAccounts: accounts
|
||||
};
|
||||
}
|
||||
@@ -135,7 +135,7 @@ export default class AccountStore implements IAccountStore {
|
||||
accountAdded: false,
|
||||
accountModified: false,
|
||||
accountRemoved: match >= 0,
|
||||
changedAccount: null,
|
||||
changedAccount: undefined,
|
||||
updatedAccounts: accounts
|
||||
};
|
||||
}
|
||||
@@ -149,7 +149,7 @@ export default class AccountStore implements IAccountStore {
|
||||
accountAdded: false,
|
||||
accountModified: false,
|
||||
accountRemoved: false,
|
||||
changedAccount: null,
|
||||
changedAccount: undefined,
|
||||
updatedAccounts: accounts
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user