Commit 0575d152 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'clippy'

d33628b8

 clippy: apply suggestions
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Brad King's avatarBrad King <brad.king@kitware.com>
Merge-request: !75
parents 6962c579 d33628b8
......@@ -289,7 +289,7 @@ impl MergeRequestParams {
pub fn force_remove_source_branch(&self) -> bool {
self.force_remove_source_branch
.as_ref()
.map(|val| {
.map_or(false, |val| {
if let Some(as_str) = val.as_str() {
as_str == "1"
} else if let Some(as_bool) = val.as_bool() {
......@@ -300,7 +300,6 @@ impl MergeRequestParams {
false
}
})
.unwrap_or(false)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment