##// END OF EJS Templates
rhg: use `.or(Err(Error))` not `.map_err(|_| Error)` (D9100#inline-15067)...
Antoine cezar -
r46178:db11f8f3 default
parent child Browse files
Show More
@@ -40,9 +40,9 b" impl<'a> Command for CatCommand<'a> {"
40 let normalized = cwd.join(&file);
40 let normalized = cwd.join(&file);
41 let stripped = normalized
41 let stripped = normalized
42 .strip_prefix(&root)
42 .strip_prefix(&root)
43 .map_err(|_| CommandErrorKind::Abort(None))?;
43 .or(Err(CommandErrorKind::Abort(None)))?;
44 let hg_file = HgPathBuf::try_from(stripped.to_path_buf())
44 let hg_file = HgPathBuf::try_from(stripped.to_path_buf())
45 .map_err(|_| CommandErrorKind::Abort(None))?;
45 .or(Err(CommandErrorKind::Abort(None)))?;
46 files.push(hg_file);
46 files.push(hg_file);
47 }
47 }
48
48
General Comments 0
You need to be logged in to leave comments. Login now