-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove unsed vars & cleanups #437
Conversation
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
let [arg1] = valArray(state, args, ['string']); | ||
return typed(`LOWER(${arg1})`, 'string'); | ||
} | ||
|
||
// integer/float functions | ||
case '$neg': { | ||
validateArgLength(args, 1); | ||
// eslint-disable-next-line no-unused-vars | ||
let [arg1] = valArray(state, args, ['float']); | ||
valArray(state, args, ['float']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Throws an exception if the vars are invalid, so we can't remove it.
// }); | ||
// }); | ||
// }); | ||
test('querying transactions works', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only uncommenting these tests. No changes in them.
@@ -183,7 +183,7 @@ export default class Spreadsheet { | |||
this.events.emit('change', { names: this.computeQueue }); | |||
|
|||
// Cache the updated cells | |||
if (this.saveCache) { | |||
if (typeof this.saveCache === 'function') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making the tests pass.
Performed the following steps and verified the test cases pass
Performed the following steps to verify the code change to
Please let me know if there are additional steps/actions I can take to assist in resolving this issue. |
Thanks for reviewing, @TechwizEE! |
Removing a couple more unused variables + a tiny improvement in the compiler to make some more tests pass.