Skip to content

Commit 3919791

Browse files
committed
Added default vals for RemoteLRS props
1 parent ef01bbc commit 3919791

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

TinCan/RemoteLRS.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class RemoteLRS : ILRS
3030
public Uri endpoint { get; set; }
3131
public TCAPIVersion version { get; set; }
3232
public String auth { get; set; }
33-
public Dictionary<String, String> extended { get; set; }
33+
public Dictionary<String, String> extended { get; set; } = new Dictionary<String, String>();
3434

3535
public void SetAuth(String username, String password)
3636
{
@@ -51,8 +51,8 @@ private class MyHTTPRequest
5151
{
5252
public String method { get; set; }
5353
public String resource { get; set; }
54-
public Dictionary<String, String> queryParams { get; set; }
55-
public Dictionary<String, String> headers { get; set; }
54+
public Dictionary<String, String> queryParams { get; set; } = new Dictionary<String, String>();
55+
public Dictionary<String, String> headers { get; set; } = new Dictionary<String, String>();
5656
public String contentType { get; set; }
5757
public byte[] content { get; set; }
5858
}

0 commit comments

Comments
 (0)