You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Analytics-CSharp/Segment/Analytics/Analytics.cs
+5-15Lines changed: 5 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -176,9 +176,9 @@ public virtual void Reset()
176
176
/// it's not recommended to be used in async method.
177
177
/// </summary>
178
178
/// <returns>Instance of <see cref="Settings"/></returns>
179
-
publicvirtualSettings?Settings()
179
+
publicvirtualSettingsSettings()
180
180
{
181
-
Task<Settings?>task=SettingsAsync();
181
+
Task<Settings>task=SettingsAsync();
182
182
task.Wait();
183
183
returntask.Result;
184
184
}
@@ -187,20 +187,10 @@ public virtual void Reset()
187
187
/// Retrieve the settings.
188
188
/// </summary>
189
189
/// <returns>Instance of <see cref="Settings"/></returns>
190
-
publicvirtualasyncTask<Settings?>SettingsAsync()
190
+
publicvirtualasyncTask<Settings>SettingsAsync()
191
191
{
192
-
Settings?returnSettings=null;
193
-
IStatesystem=awaitStore.CurrentState<System>();
194
-
195
-
// I don't understand this as Store.CurrentState will at worst return a default(TState) which will be a default(System) in this case, hence this cast will always go through?
196
-
// System is a struct, so the default is an empty instance, not null
0 commit comments