Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 17, 2021
1 parent 2a85b65 commit f418a3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bin/coco.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ fn main() {
let config_file = &opt.config_file;
let config = CocoConfig::from_file(config_file);

if opt.debug {
let is_debug = opt.debug.clone();
if is_debug {
println!("found config file: {}", config_file);
println!("{:?}", opt);
}
Expand All @@ -39,7 +40,7 @@ fn main() {
analyst.analysis(opt);

let plugin_manager = PluginManager::from(&config);
plugin_manager.run_all(opt.debug.clone());
plugin_manager.run_all(is_debug);
}

fn create_config_file() {
Expand Down

0 comments on commit f418a3c

Please sign in to comment.