Skip to content

Commit 236fef2

Browse files
committed
fix: Fixed warning for nullables
1 parent 84b0328 commit 236fef2

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

Contentstack.Management.Core/Models/Stack.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ public Release Release(string? uid = null)
843843
/// </code></pre>
844844
/// </example>
845845
/// <returns>The <see cref="Models.Workflow" /></returns>
846-
public Workflow Workflow(string uid = null)
846+
public Workflow Workflow(string? uid = null)
847847
{
848848
ThrowIfNotLoggedIn();
849849
ThrowIfAPIKeyEmpty();

Contentstack.Management.Core/Models/Workflow.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal Workflow(Stack stack, string uid)
2525
/// </code></pre>
2626
/// </example>
2727
/// <returns>The <see cref="ContentstackResponse"/>.</returns>
28-
public virtual ContentstackResponse FindAll(ParameterCollection collection = null)
28+
public virtual ContentstackResponse FindAll(ParameterCollection? collection = null)
2929
{
3030
stack.ThrowIfNotLoggedIn();
3131
ThrowIfUidNotEmpty();
@@ -45,7 +45,7 @@ public virtual ContentstackResponse FindAll(ParameterCollection collection = nul
4545
/// </code></pre>
4646
/// </example>
4747
/// <returns>The <see cref="ContentstackResponse"/>.</returns>
48-
public virtual Task<ContentstackResponse> FindAllAsync(ParameterCollection collection = null)
48+
public virtual Task<ContentstackResponse> FindAllAsync(ParameterCollection? collection = null)
4949
{
5050
stack.ThrowIfNotLoggedIn();
5151
ThrowIfUidNotEmpty();
@@ -66,7 +66,7 @@ public virtual Task<ContentstackResponse> FindAllAsync(ParameterCollection colle
6666
/// </example>
6767
/// <param name="model">Workflow Model for creating workflow.</param>
6868
/// <returns></returns>
69-
public override ContentstackResponse Create(WorkflowModel model, ParameterCollection collection = null)
69+
public override ContentstackResponse Create(WorkflowModel model, ParameterCollection? collection = null)
7070
{
7171
return base.Create(model, collection);
7272
}
@@ -83,7 +83,7 @@ public override ContentstackResponse Create(WorkflowModel model, ParameterCollec
8383
/// </example>
8484
/// <param name="model">Workflow Model for creating workflow.</param>
8585
/// <returns></returns>
86-
public override Task<ContentstackResponse> CreateAsync(WorkflowModel model, ParameterCollection collection = null)
86+
public override Task<ContentstackResponse> CreateAsync(WorkflowModel model, ParameterCollection? collection = null)
8787
{
8888
return base.CreateAsync(model, collection);
8989
}
@@ -100,7 +100,7 @@ public override Task<ContentstackResponse> CreateAsync(WorkflowModel model, Para
100100
/// </example>
101101
/// <param name="model">Workflow Model for updating Content Type.</param>
102102
/// <returns></returns>
103-
public override ContentstackResponse Update(WorkflowModel model, ParameterCollection collection = null)
103+
public override ContentstackResponse Update(WorkflowModel model, ParameterCollection? collection = null)
104104
{
105105
return base.Update(model, collection);
106106
}
@@ -117,7 +117,7 @@ public override ContentstackResponse Update(WorkflowModel model, ParameterCollec
117117
/// </example>
118118
/// <param name="model">Workflow Model for updating Content Type.</param>
119119
/// <returns></returns>
120-
public override Task<ContentstackResponse> UpdateAsync(WorkflowModel model, ParameterCollection collection = null)
120+
public override Task<ContentstackResponse> UpdateAsync(WorkflowModel model, ParameterCollection? collection = null)
121121
{
122122
return base.UpdateAsync(model, collection);
123123
}
@@ -132,7 +132,7 @@ public override Task<ContentstackResponse> UpdateAsync(WorkflowModel model, Para
132132
/// </code></pre>
133133
/// </example>
134134
/// <returns>The <see cref="ContentstackResponse"/>.</returns>
135-
public override ContentstackResponse Fetch(ParameterCollection collection = null)
135+
public override ContentstackResponse Fetch(ParameterCollection? collection = null)
136136
{
137137
return base.Fetch(collection);
138138
}
@@ -147,7 +147,7 @@ public override ContentstackResponse Fetch(ParameterCollection collection = null
147147
/// </code></pre>
148148
/// </example>
149149
/// <returns>The Task.</returns>
150-
public override Task<ContentstackResponse> FetchAsync(ParameterCollection collection = null)
150+
public override Task<ContentstackResponse> FetchAsync(ParameterCollection? collection = null)
151151
{
152152
return base.FetchAsync(collection);
153153
}
@@ -162,7 +162,7 @@ public override Task<ContentstackResponse> FetchAsync(ParameterCollection collec
162162
/// </code></pre>
163163
/// </example>
164164
/// <returns>The <see cref="ContentstackResponse"/>.</returns>
165-
public override ContentstackResponse Delete(ParameterCollection collection = null)
165+
public override ContentstackResponse Delete(ParameterCollection? collection = null)
166166
{
167167
return base.Delete(collection);
168168
}
@@ -177,7 +177,7 @@ public override ContentstackResponse Delete(ParameterCollection collection = nul
177177
/// </code></pre>
178178
/// </example>
179179
/// <returns>The Task.</returns>
180-
public override Task<ContentstackResponse> DeleteAsync(ParameterCollection collection = null)
180+
public override Task<ContentstackResponse> DeleteAsync(ParameterCollection? collection = null)
181181
{
182182
return base.DeleteAsync(collection);
183183
}
@@ -269,7 +269,7 @@ public virtual Task<ContentstackResponse> EnableAsync()
269269
/// </example>
270270
/// <param name="uid">Optional Publish rule uid for performing rule specific operation</param>
271271
/// <returns></returns>
272-
public PublishRule PublishRule(string uid = null)
272+
public PublishRule PublishRule(string? uid = null)
273273
{
274274
return new PublishRule(stack, uid);
275275
}

0 commit comments

Comments
 (0)