Skip to content

Commit

Permalink
修复位置批量删除命令行功能错乱的问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
worksoup committed Apr 29, 2024
1 parent a8ffc90 commit 3561ab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@ pub fn parse_location_sub_command(db: &DataBase, sub_command: LocationSubCommand
vec![]
};
let delete_locations = match reduce_type {
ReduceType::Locations => false,
ReduceType::Locations => true,
ReduceType::Aliases { location_id } => {
if let Some(location_id) = location_id {
locations = vec![location_id]
}
true
false
}
};

Expand Down

0 comments on commit 3561ab4

Please sign in to comment.