Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
scalar438 committed Sep 7, 2024
1 parent 226f0bd commit 6182fad
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
Empty file modified Cargo.lock
100755 → 100644
Empty file.
Empty file modified Cargo.toml
100755 → 100644
Empty file.
Empty file modified README.md
100755 → 100644
Empty file.
Empty file modified rustfmt.toml
100755 → 100644
Empty file.
9 changes: 2 additions & 7 deletions src/activity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,10 @@ fn get_deploy_path(cmd: &[String]) -> Option<String> {
(None, Some(logs_dir_path)) => logs_dir_path.strip_suffix("logs"),

(Some(deploy_stand_path), None) => {
let mut res = None;
if let Some(stripped) = deploy_stand_path.strip_suffix("config\\test.s3deploy") {
res = Some(stripped);
}
let mut res = deploy_stand_path.strip_suffix("config\\test.s3deploy");

if res.is_none() {
if let Some(stripped) = deploy_stand_path.strip_suffix("config/test.s3deploy") {
res = Some(stripped)
}
res = deploy_stand_path.strip_suffix("config/test.s3deploy");
}

res
Expand Down

0 comments on commit 6182fad

Please sign in to comment.