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.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: tweak linter warnings
Stevenb376a20fb48c
diff --git a/plugin/idp/oauth2/oauth2_test.go b/plugin/idp/oauth2/oauth2_test.goindex 6c07fea94..90e3f3ed2 100644--- a/plugin/idp/oauth2/oauth2_test.go+++ b/plugin/idp/oauth2/oauth2_test.go@@ -98,7 +98,7 @@ func newMockServer(t *testing.T, code, accessToken string, userinfo []byte) *htt})require.NoError(t, err)})- mux.HandleFunc("/oauth2/userinfo", func(w http.ResponseWriter, r *http.Request) {+ mux.HandleFunc("/oauth2/userinfo", func(w http.ResponseWriter, _ *http.Request) {w.Header().Set("Content-Type", "application/json")_, err := w.Write(userinfo)require.NoError(t, err)diff --git a/server/router/api/v1/memo_service.go b/server/router/api/v1/memo_service.goindex 8e5522720..b38e91981 100644--- a/server/router/api/v1/memo_service.go+++ b/server/router/api/v1/memo_service.go@@ -60,7 +60,6 @@ func (s *APIV1Service) CreateMemo(ctx context.Context, request *v1pb.CreateMemoR}if len(create.Content) > contentLengthLimit {return nil, status.Errorf(codes.InvalidArgument, "content too long (max %d characters)", contentLengthLimit)-}property, err := memoproperty.GetMemoPropertyFromContent(create.Content)if err != nil {diff --git a/server/server.go b/server/server.goindex 4e7ee6da8..211d13f21 100644--- a/server/server.go+++ b/server/server.go@@ -9,7 +9,7 @@ import ("time""github.com/google/uuid"- grpc_recovery "github.com/grpc-ecosystem/go-grpc-middleware/recovery"+ grpcrecovery "github.com/grpc-ecosystem/go-grpc-middleware/recovery""github.com/labstack/echo/v4""github.com/labstack/echo/v4/middleware""github.com/pkg/errors"@@ -78,7 +78,7 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Storegrpc.MaxRecvMsgSize(100*1024*1024),grpc.ChainUnaryInterceptor(apiv1.NewLoggerInterceptor().LoggerInterceptor,- grpc_recovery.UnaryServerInterceptor(),+ grpcrecovery.UnaryServerInterceptor(),apiv1.NewGRPCAuthInterceptor(store, secret).AuthenticationInterceptor,))s.grpcServer = grpcServer