Skip to content

Commit 7d7653f

Browse files
infinitioninfinition
authored andcommitted
cargo fmt
1 parent 41d51f8 commit 7d7653f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/server.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -780,13 +780,13 @@ if ($f.ShowDialog() -eq "OK") { Write-Output $f.SelectedPath }
780780
.ok()
781781
.and_then(|o| {
782782
let s = String::from_utf8_lossy(&o.stdout).trim().to_string();
783-
if s.is_empty() { None } else { Some(s) }
783+
if s.is_empty() {
784+
None
785+
} else {
786+
Some(s)
787+
}
784788
});
785-
respond_json(
786-
request,
787-
200,
788-
&json!({ "path": path }),
789-
);
789+
respond_json(request, 200, &json!({ "path": path }));
790790
}
791791

792792
(false, _) if path.starts_with("/api/i18n/") => {

0 commit comments

Comments
 (0)