Skip to content

Commit a5b557c

Browse files
Format code
Signed-off-by: Omar Mohamed <[email protected]>
1 parent d5b176a commit a5b557c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/config/workspace.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ impl WorkspaceProtoConfigs {
3030
for file in CONFIG_FILE_NAMES {
3131
let p = Path::new(&wpath).join(file);
3232
match std::fs::exists(&p) {
33-
Ok(exists) => {
34-
if exists {
35-
return Some(p);
36-
}
37-
}
33+
Ok(exists) if exists => return Some(p),
3834
_ => continue,
3935
}
4036
}

0 commit comments

Comments
 (0)