From f65633e8a9b1c57ea0ffad2e8f5df668215bcdaa Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 29 Oct 2025 23:41:20 +0800 Subject: [PATCH] chore: fix linter issues in backend and frontend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove extra blank line in memo_service.go (goimports) - Remove invalid fields from CreateMemoRequest call (validateOnly, requestId) - Clean up unnecessary comments 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- server/router/api/v1/memo_service.go | 1 - web/src/components/MemoEditor/index.tsx | 3 --- 2 files changed, 4 deletions(-) diff --git a/server/router/api/v1/memo_service.go b/server/router/api/v1/memo_service.go index 150b8685f..a07b5b9a0 100644 --- a/server/router/api/v1/memo_service.go +++ b/server/router/api/v1/memo_service.go @@ -679,7 +679,6 @@ func (s *APIV1Service) ListMemoComments(ctx context.Context, request *v1pb.ListM return response, nil } - func (s *APIV1Service) getContentLengthLimit(ctx context.Context) (int, error) { workspaceMemoRelatedSetting, err := s.Store.GetWorkspaceMemoRelatedSetting(ctx) if err != nil { diff --git a/web/src/components/MemoEditor/index.tsx b/web/src/components/MemoEditor/index.tsx index 921dda459..3a5f2b848 100644 --- a/web/src/components/MemoEditor/index.tsx +++ b/web/src/components/MemoEditor/index.tsx @@ -395,10 +395,7 @@ const MemoEditor = observer((props: Props) => { relations: state.relationList, location: state.location, }), - // Optional fields can be omitted memoId: "", - validateOnly: false, - requestId: "", }) : memoServiceClient .createMemoComment({