chore(lint): clean up frontend and Rust lint issues
This commit is contained in:
@@ -68,14 +68,10 @@ pub async fn create_folder_command(
|
||||
Json(params): Json<CreateFolderCommandParams>,
|
||||
) -> Result<Json<FolderCommandInfo>, AppCommandError> {
|
||||
let db = &state.db;
|
||||
let result = folder_command_service::create(
|
||||
&db.conn,
|
||||
params.folder_id,
|
||||
¶ms.name,
|
||||
¶ms.command,
|
||||
)
|
||||
.await
|
||||
.map_err(AppCommandError::from)?;
|
||||
let result =
|
||||
folder_command_service::create(&db.conn, params.folder_id, ¶ms.name, ¶ms.command)
|
||||
.await
|
||||
.map_err(AppCommandError::from)?;
|
||||
Ok(Json(result))
|
||||
}
|
||||
|
||||
@@ -142,10 +138,12 @@ pub async fn bootstrap_folder_commands_from_package_json(
|
||||
crate::commands::folder_commands::load_package_scripts_as_commands(¶ms.folder_path)
|
||||
})
|
||||
.await
|
||||
.map_err(|e| AppCommandError::new(
|
||||
crate::app_error::AppErrorCode::TaskExecutionFailed,
|
||||
format!("bootstrap task failed: {e}"),
|
||||
))?;
|
||||
.map_err(|e| {
|
||||
AppCommandError::new(
|
||||
crate::app_error::AppErrorCode::TaskExecutionFailed,
|
||||
format!("bootstrap task failed: {e}"),
|
||||
)
|
||||
})?;
|
||||
|
||||
if commands_to_create.is_empty() {
|
||||
return Ok(Json(existing));
|
||||
|
||||
Reference in New Issue
Block a user