Skip to content

Commit

Permalink
fixed conditional block
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinrp committed May 7, 2024
1 parent a692b15 commit 09151ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions crates/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,14 @@ impl<R: RegistryStorage, C: ContentStorage, N: NamespaceMapStorage> Client<R, C,
name,
has_auth_token,
}) => {
if !initializing && self.disable_interactive {
return Err(ClientError::MustInitializePackage {
name,
has_auth_token,
});
} else if !initializing {
if !initializing {
if self.disable_interactive || cfg!(not(feature = "cli-interactive")) {
return Err(ClientError::MustInitializePackage {
name,
has_auth_token,
});
}

#[cfg(feature = "cli-interactive")]
{
use crate::storage::PublishEntry;
Expand Down
Binary file added http.wasm
Binary file not shown.

0 comments on commit 09151ca

Please sign in to comment.