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
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -191,6 +191,10 @@ public virtual void Reset()
191
191
{
192
192
Settings?returnSettings=null;
193
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