Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
boydc2014 committed Mar 20, 2020
1 parent 1bc8305 commit 3749159
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Composer/packages/server/src/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ const updateStore = () => {
if (fs.existsSync(dataStorePath)) {
const userData = JSON.parse(fs.readFileSync(dataStorePath, 'utf-8'));

function compareKeys(a, b) {
var aKeys = Object.keys(a).sort();
var bKeys = Object.keys(b).sort();
const compareKeys = (a, b) => {
const aKeys = Object.keys(a).sort();
const bKeys = Object.keys(b).sort();
return JSON.stringify(aKeys) === JSON.stringify(bKeys);
}
};

if (!compareKeys(initData, userData)) {
// it's safe to assume when keys are different, the user data is using an obsolete version
Expand Down

0 comments on commit 3749159

Please sign in to comment.