Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: tweak linter errors

Stevenfa62e8b59af2
diff --git a/api/v2/workspace_service.go b/api/v2/workspace_service.go
index 8324502e4..78b31a7e2 100644
--- a/api/v2/workspace_service.go
+++ b/api/v2/workspace_service.go
@@ -6,7 +6,7 @@ import (
apiv2pb "github.com/usememos/memos/proto/gen/api/v2"
)
-func (s *APIV2Service) GetWorkspaceProfile(ctx context.Context, _ *apiv2pb.GetWorkspaceProfileRequest) (*apiv2pb.GetWorkspaceProfileResponse, error) {
+func (s *APIV2Service) GetWorkspaceProfile(_ context.Context, _ *apiv2pb.GetWorkspaceProfileRequest) (*apiv2pb.GetWorkspaceProfileResponse, error) {
workspaceProfile := &apiv2pb.WorkspaceProfile{
Version: s.Profile.Version,
Mode: s.Profile.Mode,
diff --git a/store/db/postgres/workspace_setting.go b/store/db/postgres/workspace_setting.go
index ed2add3d5..16546f5bc 100644
--- a/store/db/postgres/workspace_setting.go
+++ b/store/db/postgres/workspace_setting.go
@@ -4,9 +4,10 @@ import (
"context"
"strings"
+ "google.golang.org/protobuf/encoding/protojson"
+
storepb "github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
- "google.golang.org/protobuf/encoding/protojson"
)
func (d *DB) UpsertWorkspaceSetting(ctx context.Context, upsert *store.WorkspaceSetting) (*store.WorkspaceSetting, error) {