Skip to content

Commit adf8ae6

Browse files
committed
clippy
1 parent cb2b77c commit adf8ae6

File tree

1 file changed

+2
-3
lines changed
  • crates/processing_render/src

1 file changed

+2
-3
lines changed

crates/processing_render/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,13 @@ impl Plugin for ProcessingRenderPlugin {
4646
let has_sketch_file = config
4747
.get(ConfigKey::SketchFileName)
4848
.is_some_and(|f| !f.is_empty());
49-
if has_sketch_file {
50-
if let Some(sketch_path) = config.get(ConfigKey::SketchRootPath) {
49+
if has_sketch_file
50+
&& let Some(sketch_path) = config.get(ConfigKey::SketchRootPath) {
5151
app.register_asset_source(
5252
"sketch_directory",
5353
AssetSourceBuilder::platform_default(sketch_path, None),
5454
);
5555
}
56-
}
5756

5857
if has_sketch_file {
5958
app.add_plugins(sketch::LivecodePlugin);

0 commit comments

Comments
 (0)