Skip to content

Commit 9fd7e9e

Browse files
committed
Update app.rs
1 parent ab49460 commit 9fd7e9e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

crates/rustapi-core/src/app.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,11 +1129,8 @@ impl RustApi {
11291129
}
11301130

11311131
if self.health_endpoint_config.is_none() {
1132-
self.health_endpoint_config = Some(
1133-
config
1134-
.health_endpoint_config
1135-
.unwrap_or_default(),
1136-
);
1132+
self.health_endpoint_config =
1133+
Some(config.health_endpoint_config.unwrap_or_default());
11371134
}
11381135
}
11391136

@@ -2593,4 +2590,3 @@ mod tests {
25932590
);
25942591
}
25952592
}
2596-

0 commit comments

Comments
 (0)