diff options
| author | Dax Raad <[email protected]> | 2025-10-07 15:51:59 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-10-07 15:51:59 -0400 |
| commit | dca3a5d80d9d22400b48c217098a632d72bf2122 (patch) | |
| tree | ed3ac2f4c601290008a9dc8cffbca563b89a1770 /packages/sdk/go/path.go | |
| parent | 508067ba5da9afa82bff401dd8478be2145d61a4 (diff) | |
| download | opencode-dca3a5d80d9d22400b48c217098a632d72bf2122.tar.gz opencode-dca3a5d80d9d22400b48c217098a632d72bf2122.zip | |
fix issue with blank new version popup
Diffstat (limited to 'packages/sdk/go/path.go')
| -rw-r--r-- | packages/sdk/go/path.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/sdk/go/path.go b/packages/sdk/go/path.go index 63e502626..6b64a43bf 100644 --- a/packages/sdk/go/path.go +++ b/packages/sdk/go/path.go @@ -6,6 +6,7 @@ import ( "context" "net/http" "net/url" + "slices" "github.com/sst/opencode-sdk-go/internal/apijson" "github.com/sst/opencode-sdk-go/internal/apiquery" @@ -35,7 +36,7 @@ func NewPathService(opts ...option.RequestOption) (r *PathService) { // Get the current path func (r *PathService) Get(ctx context.Context, query PathGetParams, opts ...option.RequestOption) (res *Path, err error) { - opts = append(r.Options[:], opts...) + opts = slices.Concat(r.Options, opts) path := "path" err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &res, opts...) return |
