mirror of
https://github.com/TECHNOFAB11/bump2version.git
synced 2025-12-15 09:23:52 +01:00
fix: make part and file section in config optional
This commit is contained in:
parent
98ab491bd0
commit
1a7c22bdbf
6 changed files with 11 additions and 8 deletions
|
|
@ -41,7 +41,7 @@ pub fn attempt_version_bump(args: Cli, config: Config) -> Option<String> {
|
|||
|
||||
for label in order.clone() {
|
||||
if let Some(part) = parsed.get_mut(label) {
|
||||
let part_cfg = part_configs.get(label);
|
||||
let part_cfg = part_configs.as_ref().and_then(|c| c.get(label));
|
||||
|
||||
if label == args.bump {
|
||||
match part_cfg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue