Skip to content

Commit

Permalink
No external RequestOptions.Clone
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Dec 21, 2022
1 parent 0de7378 commit 450d2e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Stripe.net/Services/Files/FileService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private RequestOptions SetupRequestOptionsForFilesRequest(RequestOptions request

if (requestOptions.BaseUrl == null)
{
requestOptions = (RequestOptions)requestOptions.Clone();
requestOptions = requestOptions.Clone();
requestOptions.BaseUrl = this.Client.FilesBase;
}

Expand Down
6 changes: 3 additions & 3 deletions src/Stripe.net/Services/_common/RequestOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Stripe
{
using System;

public class RequestOptions : ICloneable
public class RequestOptions
{
/// <summary>
/// Gets or sets the <a href="https://stripe.com/docs/api/authentication?lang=dotnet">API
Expand Down Expand Up @@ -39,9 +39,9 @@ public class RequestOptions : ICloneable
/// </remarks>
internal string StripeVersion { get; set; }

public object Clone()
internal RequestOptions Clone()
{
return this.MemberwiseClone();
return (RequestOptions)this.MemberwiseClone();
}
}
}

0 comments on commit 450d2e9

Please sign in to comment.