Don't unwrap in production code

This commit is contained in:
Dustin J. Mitchell
2021-05-07 22:35:42 +00:00
parent cbe11a1d3d
commit fa9e6ddcd5

View File

@@ -6,7 +6,7 @@ pub(crate) fn execute<W: WriteColor>(
replica: &mut Replica,
server: &mut Box<dyn Server>,
) -> anyhow::Result<()> {
replica.sync(server).unwrap();
replica.sync(server)?;
writeln!(w, "sync complete.")?;
Ok(())
}