-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix Signature Error and Refactor saveConfiguration #20
Conversation
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.
Huh, interesting. I never got this error and can't reproduce it (on Windows 10). Maybe another OS-specific thing? Your changed code works just as well on Windows though (i.e. triggers no errors and can successfully fetch the configuration)
Pending the changes I'm happy to merge this.
The code has been refactored based on the review. Any suggestion? |
The error is a bit weird, and I have spent some time figuring it out. It might be an OS-specific issue, or it might not be. Probably something is wrong with my local environment. |
Having the config outside of the getConfiguration() function allows exporting down the line if needed.
Sorry, I wasn't clear enough with "outside the function" in #20 (comment) I added the change I intended myself, no worries.
Maybe, but if this fixes it, it doesn't matter in the end. Thanks again for your time and work, I appreciate it! |
There is a signature error in the getConfiguration method:
And this PR aims to fix it and refactor the saveConfiguration method to be cleaner.