Skip to content

Commit ee23529

Browse files
Fixed lint.
1 parent 494c188 commit ee23529

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/dfx/src/actors/pocketic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,6 @@ async fn shutdown_pocketic(
648648
}
649649

650650
#[cfg(not(unix))]
651-
fn shutdown_pocketic(_: u16, _: usize, _: usize, _: Logger) -> DfxResult {
651+
fn shutdown_pocketic(_: u16, _: usize, _: usize, _: Option<String>, _: Logger) -> DfxResult {
652652
bail!("PocketIC not supported on this platform")
653653
}

src/dfx/src/commands/start.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,16 +159,16 @@ pub fn exec(
159159
) -> DfxResult {
160160
ensure!(!replica, "The 'native' replica (--replica) is no longer supported. See the 0.27.0 migration guide for more information.
161161
https://github.com/dfinity/sdk/blob/0.27.0/docs/migration/dfx-0.27.0-migration-guide.md");
162-
if let Some(_) = docker {
163-
check_docker_command_available()?;
164-
}
165162
if !background {
166163
info!(
167164
env.get_logger(),
168165
"Running dfx start for version {}",
169166
dfx_version_str()
170167
);
171168
}
169+
if docker.is_some() {
170+
check_docker_command_available()?;
171+
}
172172
let project_config = env.get_config()?;
173173

174174
let network_descriptor_logger = if background {

0 commit comments

Comments
 (0)