fix formatting

pull/2421/head
VulnX 5 months ago
parent ae2156b637
commit d0ac2a1d53
No known key found for this signature in database
GPG Key ID: CC61EA8583C4CD8E

File diff suppressed because one or more lines are too long

@ -1351,7 +1351,7 @@ async function size(path: string | URL): Promise<number> {
* Get the file name from a file path (desktop) or content URI (android)
*/
async function fileName(filepath: string | URL): Promise<string> {
return await invoke('plugin:fs|file_name', {filepath});
return await invoke('plugin:fs|file_name', { filepath })
}
export type {

@ -102,10 +102,10 @@ impl<R: Runtime> Fs<R> {
uri = url.to_string();
}
}
let Ok(result) = self.0.run_mobile_plugin::<GetFileNameResponse>(
"getFileName",
GetFileNamePayload { uri },
) else {
let Ok(result) = self
.0
.run_mobile_plugin::<GetFileNameResponse>("getFileName", GetFileNamePayload { uri })
else {
return Err("Failed to invoke getFileName kotlin function".into());
};
if let Some(name) = result.name {

Loading…
Cancel
Save