Added default to quick() in main

Added a default case to quick in main (quickcommit).

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
Christina Sørensen 2023-06-12 13:47:17 +02:00
parent 9182d4f236
commit 1cc7f7a1ae
Signed by: cafkafk
GPG key ID: CDDC792F655251ED

View file

@ -46,7 +46,7 @@ fn main() {
config.link_all(); config.link_all();
} }
Some(Commands::Quick { msg }) => { Some(Commands::Quick { msg }) => {
config.quick(&msg.as_ref().unwrap()); config.quick(&msg.as_ref().get_or_insert(&"gg: quick commit".to_string()));
} }
Some(Commands::Clone { msg: _ }) => { Some(Commands::Clone { msg: _ }) => {
config.clone_all(); config.clone_all();