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

Merge topic 'types-bail-simplify'

9685e934

 config/types: simplify a bail call
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Brad King's avatarBrad King <brad.king@kitware.com>
Merge-request: !117
parents 4a887cd8 9685e934
......@@ -264,9 +264,9 @@ impl Project {
.output()
.chain_err(|| "failed to construct for-each-ref command")?;
if !for_each_ref.status.success() {
bail!(format!("could not list refs in the {} project: {}",
name,
String::from_utf8_lossy(&for_each_ref.stderr)));
bail!("could not list refs in the {} project: {}",
name,
String::from_utf8_lossy(&for_each_ref.stderr));
}
let branch_ref_names = String::from_utf8_lossy(&for_each_ref.stdout);
let branch_names = branch_ref_names.lines()
......
Supports Markdown
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