Skip to content

Commit 21ce70e

Browse files
committed
build: fix clippy warning
1 parent 865ed89 commit 21ce70e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

agent/src/util/config_action.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,7 @@ async fn should_recreate_config(
301301
.lock()
302302
.await
303303
.get(&name)
304-
.ok_or(anyhow::anyhow!(
305-
"Configuration {} not found in ConfigMap",
306-
name
307-
))?
304+
.ok_or_else(|| anyhow::anyhow!("Configuration {} not found in ConfigMap", name))?
308305
.last_generation;
309306

310307
if config.metadata.generation == last_generation {

0 commit comments

Comments
 (0)