Skip to content

Commit 046f1ba

Browse files
committed
Update comments and use target-typed new()
1 parent f009110 commit 046f1ba

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Supabase/SupabaseOptions.cs

+3-4
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,14 @@ public class SupabaseOptions
3232
public IGotrueSessionPersistence<Session> SessionHandler { get; set; } = new DefaultSupabaseSessionHandler();
3333

3434
/// <summary>
35-
/// Headers that allow manual specifications of an "Authorization" to be passed to the supabase client.
36-
/// This is unlikely to be used.
35+
/// Allows developer to specify options that will be passed to all child Supabase clients.
3736
/// </summary>
38-
public Dictionary<string, string> Headers = new Dictionary<string, string>();
37+
public Dictionary<string, string> Headers = new();
3938

4039
/// <summary>
4140
/// Specifies Options passed to the StorageClient.
4241
/// </summary>
43-
public Storage.ClientOptions StorageClientOptions { get; set; } = new Storage.ClientOptions();
42+
public Storage.ClientOptions StorageClientOptions { get; set; } = new();
4443

4544
/// <summary>
4645
/// The Supabase Auth Url Format

SupabaseTests/Client.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace SupabaseTests
1010
[TestClass]
1111
public class Client
1212
{
13-
private static readonly Random Random = new Random();
13+
private static readonly Random Random = new();
1414

1515
private Supabase.Client _instance;
1616

SupabaseTests/StatelessClient.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class StatelessClient
1414
{
1515

1616
private string supabaseUrl = "http://localhost";
17-
private Supabase.SupabaseOptions options = new Supabase.SupabaseOptions
17+
private Supabase.SupabaseOptions options = new()
1818
{
1919
AuthUrlFormat = "{0}:9999",
2020
RealtimeUrlFormat = "{0}:4000/socket",

0 commit comments

Comments
 (0)