diff options
author | Teddy Wing | 2020-08-02 10:43:54 +0200 |
---|---|---|
committer | Teddy Wing | 2020-08-02 10:43:54 +0200 |
commit | 48e4130e825de244592d7cf0631d3b0552d42ef1 (patch) | |
tree | e6d2a5b5fba0bdf4b6a9cb406c7b6f00679575f1 /src/bin/git-sugpatch.rs | |
parent | 20e98432afb02262703a2bd4524e6a87f3145086 (diff) | |
download | git-suggestion-48e4130e825de244592d7cf0631d3b0552d42ef1.tar.bz2 |
Move suggestion arguments check to `Config::get`
Since this check for suggestion arguments is in both binaries, we can
move it to the common preflight function.
Clean up other areas now that we moved the function.
Diffstat (limited to 'src/bin/git-sugpatch.rs')
-rw-r--r-- | src/bin/git-sugpatch.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/bin/git-sugpatch.rs b/src/bin/git-sugpatch.rs index 10499e9..58d9a04 100644 --- a/src/bin/git-sugpatch.rs +++ b/src/bin/git-sugpatch.rs @@ -22,12 +22,6 @@ fn main() { }, }; - if config.suggestions.is_empty() { - config.print_usage(); - - process::exit(exitcode::USAGE); - } - for_suggestion( &config, |suggestion| { |