Skip to content

Commit

Permalink
little bit of cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
Milo123459 committed Sep 24, 2023
1 parent 5e30730 commit 78fce24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/commands/down.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@ pub async fn command(args: Args, _json: bool) -> Result<()> {
.edges
.into_iter()
.filter_map(|deployment| {
if deployment.node.status == DeploymentStatus::SUCCESS {
Some(deployment.node)
} else {
None
}
(deployment.node.status == DeploymentStatus::SUCCESS).then_some(deployment.node)
})
.collect();
deployments.sort_by(|a, b| b.created_at.cmp(&a.created_at));
Expand Down
6 changes: 1 addition & 5 deletions src/commands/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,7 @@ pub async fn command(args: Args, json: bool) -> Result<()> {
.edges
.into_iter()
.filter_map(|deployment| {
if deployment.node.status == DeploymentStatus::SUCCESS {
Some(deployment.node)
} else {
None
}
(deployment.node.status == DeploymentStatus::SUCCESS).then_some(deployment.node)
})
.collect();
deployments.sort_by(|a, b| b.created_at.cmp(&a.created_at));
Expand Down

0 comments on commit 78fce24

Please sign in to comment.