Skip to content

Commit

Permalink
refactor variable name in executeAndRespondError function
Browse files Browse the repository at this point in the history
  • Loading branch information
diffitask committed Oct 30, 2023
1 parent 68c2929 commit f7b943e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ suspend fun ApplicationCall.respondJson(responseObject: Any, status: HttpStatusC
}

suspend fun PipelineContext<*, ApplicationCall>.executeAndRespondError(
listDirectoryContents: IdeApiMethod,
ideApiMethod: IdeApiMethod,
logger: Logger
): Boolean = try {
listDirectoryContents.execute()
ideApiMethod.execute()
true
} catch (e: Exception) {
logger.error("Error while api execution: ${e.message}")
Expand Down

0 comments on commit f7b943e

Please sign in to comment.