From 48e4130e825de244592d7cf0631d3b0552d42ef1 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 2 Aug 2020 10:43:54 +0200 Subject: 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. --- src/bin/git-sugapply.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/bin/git-sugapply.rs') diff --git a/src/bin/git-sugapply.rs b/src/bin/git-sugapply.rs index 96e4423..18d670c 100644 --- a/src/bin/git-sugapply.rs +++ b/src/bin/git-sugapply.rs @@ -22,12 +22,6 @@ fn main() { }, }; - if config.suggestions.is_empty() { - config.print_usage(); - - process::exit(exitcode::USAGE); - } - for_suggestion( &config, |suggestion| { -- cgit v1.2.3