Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Dec 9, 2024
1 parent 0e5d268 commit 2b979f8
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions plugins/fs/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,15 @@ pub async fn read_file<R: Runtime>(
path: SafeFilePath,
options: Option<BaseOptions>,
) -> CommandResult<tauri::ipc::Response> {
read_file_inner("read-file", webview, global_scope, command_scope, path, options).await
read_file_inner(
"read-file",
webview,
global_scope,
command_scope,
path,
options
)
.await
}

// TODO, remove in v3, rely on `read_file` command instead
Expand All @@ -399,7 +407,15 @@ pub async fn read_text_file<R: Runtime>(
path: SafeFilePath,
options: Option<BaseOptions>,
) -> CommandResult<tauri::ipc::Response> {
read_file_inner("read-text-file", webview, global_scope, command_scope, path, options).await
read_file_inner(
"read-text-file",
webview,
global_scope,
command_scope,
path,
options
)
.await
}

#[tauri::command]
Expand Down

0 comments on commit 2b979f8

Please sign in to comment.