-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete ImportProfileModal.profileCreatedCallback refactoring
- Move parts of profileCreatedCallback to ProfileUtils - Absorp the functionality from downloadAndSaveMods directly into profileCreatedCallback, as the method has been greatly reduced in size by previous refactoring, and the readability of the code no longer warrants this separation - As far as I'm concerned, the refactoring of this particular method is now completed: all that remains in the method is reading and updating the state of the component and the app, and all business logic has been moved behind three external methods. While the three could be combined into one, it would IMO then become too big of a function - Rename the method to importProfile, since it's not really a callback function
- Loading branch information
Showing
2 changed files
with
46 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters