-
Notifications
You must be signed in to change notification settings - Fork 821
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use more idiomatic expressions / DRY (#690)
- Uses short circuit logic for loading configuration file - Only checks for windows as the target OS when running ADB shell commands since it needs the special 0x08000000 creation flag - Parses shell output into string before checking success status since the output is used unconditionally - Creates helper function user_flag when an additional --user argument has to be supplied to pm - Uses unwrap_or_else when we are only concerned with applying a function to an error --------- Co-authored-by: w1nst0n <[email protected]>
- Loading branch information
Showing
2 changed files
with
57 additions
and
76 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