From 4511f4f53741c9bdbc7755048c8af4d5f4cb8451 Mon Sep 17 00:00:00 2001 From: Yongtao Huang Date: Fri, 12 Sep 2025 09:40:41 +0800 Subject: [PATCH] Remove redundant parse_args call in WorkflowByIdApi.patch (#25498) --- api/controllers/console/app/workflow.py | 1 - api/services/plugin/github_service.py | 0 2 files changed, 1 deletion(-) delete mode 100644 api/services/plugin/github_service.py diff --git a/api/controllers/console/app/workflow.py b/api/controllers/console/app/workflow.py index 6061dd8ad8..0967d09e9c 100644 --- a/api/controllers/console/app/workflow.py +++ b/api/controllers/console/app/workflow.py @@ -715,7 +715,6 @@ class WorkflowByIdApi(Resource): raise ValueError("Marked name cannot exceed 20 characters") if args.marked_comment and len(args.marked_comment) > 100: raise ValueError("Marked comment cannot exceed 100 characters") - args = parser.parse_args() # Prepare update data update_data = {} diff --git a/api/services/plugin/github_service.py b/api/services/plugin/github_service.py deleted file mode 100644 index e69de29bb2..0000000000