Skip to content

Commit

Permalink
misc: fix stable release
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Griffon <anthony@griffon.one>
  • Loading branch information
Miaxos committed Nov 29, 2023
1 parent d21e61f commit 70118d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cli/src/application/create/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl SwarmdCommand for CreateArg {
let mut base = std::env::current_dir().context("Couldn't read current directory")?;
base.push(&self.name);

if let Ok(true) = std::fs::try_exists(&base) {
if std::fs::metadata(&base).is_ok() {
bail!("A file or folder already exist at the given path.");
}

Expand Down
2 changes: 0 additions & 2 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(fs_try_exists)]

mod application;
mod domain;
mod infrastructure;
Expand Down
6 changes: 3 additions & 3 deletions cli/src/package/http_auth_server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ async fn token<'a>(
info!("Token received.");
let token = &query.token;

let _ = state.token_tx.try_send(token.clone()).inspect_err(|err| {
if let Err(err) = state.token_tx.try_send(token.clone()) {
tracing::error!("{err:?}");
});
}

Redirect::temporary(&format!("{AUTH_URL}"))
Redirect::temporary(AUTH_URL)
}

0 comments on commit 70118d7

Please sign in to comment.