Skip to content

Commit

Permalink
fix(configuration files): remove use of configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
veritem committed Nov 4, 2023
1 parent 4fd87ed commit ea20730
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ pub fn new_commit(config: &GCommitConfig) -> String {
let comm_scope = match commit_scope() {
Some(scope) => match config.scopes.contains(&scope) {
true => scope,
false => {
println!("Unknown scope, gcommit will take it as no scope provided");
empty_scope
}
false => scope,
},
None => empty_scope,
};
Expand Down
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ fn main() {

if let Some(error) = is_project_valid {
if error == "Some changes were not added to commit" {
// ask if they want to add to commit and do it
println!("\n");
println!("{error}");
println!("\n");
Expand Down

0 comments on commit ea20730

Please sign in to comment.