diff --git a/internal/server/handler_v2.go b/internal/server/handler_v2.go index cec6f477..c3d12ab0 100644 --- a/internal/server/handler_v2.go +++ b/internal/server/handler_v2.go @@ -89,9 +89,6 @@ func (h *APIv2Handler) HandleShare(w http.ResponseWriter, r *http.Request) error } snippetID, err := h.cfg.Client.Share(ctx, payload.Reader()) - if err != nil { - return err - } if err != nil { if isContentLengthError(err) { return ErrSnippetTooLarge @@ -147,6 +144,7 @@ func (h *APIv2Handler) HandleFormat(w http.ResponseWriter, r *http.Request) erro return nil } +// HandleRun sends snippet to upstream play.go.dev and returns evaluation result. func (h *APIv2Handler) HandleRun(w http.ResponseWriter, r *http.Request) error { ctx := r.Context() diff --git a/web/src/components/features/workspace/CodeEditor/autocomplete/symbols/provider.ts b/web/src/components/features/workspace/CodeEditor/autocomplete/symbols/provider.ts index a422f5dd..b8638c2c 100644 --- a/web/src/components/features/workspace/CodeEditor/autocomplete/symbols/provider.ts +++ b/web/src/components/features/workspace/CodeEditor/autocomplete/symbols/provider.ts @@ -48,7 +48,6 @@ export class GoSymbolsCompletionItemProvider extends CacheBasedCompletionProvide .trim() const query = parseExpression(val) - console.log('expr', query) if (!query) { return null }