Remove assert(is_ok) before unwrap.

It only hides the error.
This commit is contained in:
Arseny Sher
2021-05-02 17:19:09 +03:00
parent 3762b53986
commit da96965897

View File

@@ -99,7 +99,6 @@ impl ComputeControlPlane {
pub fn new_test_node(&mut self, timelineid: ZTimelineId) -> Arc<PostgresNode> {
let node = self.new_from_page_server(true, timelineid);
assert!(node.is_ok());
let node = node.unwrap();
// Configure the node to stream WAL directly to the pageserver