Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit d02baef

Browse files
Preserving the value that is set in DateTimeOffset fields in cache
There is no reason for these values to be set to null, even though they are evaluated lazily.
1 parent a15ee5d commit d02baef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/ApplicationCache.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public DateTimeOffset LastUpdatedAt
199199
set
200200
{
201201
LastUpdatedAtString = value.ToString(Constants.Iso8601Format);
202-
lastUpdatedAtValue = null;
202+
lastUpdatedAtValue = value;
203203
}
204204
}
205205

@@ -225,7 +225,7 @@ public DateTimeOffset LastVerifiedAt
225225
set
226226
{
227227
LastVerifiedAtString = value.ToString(Constants.Iso8601Format);
228-
lastVerifiedAtValue = null;
228+
lastVerifiedAtValue = value;
229229
}
230230
}
231231

@@ -251,7 +251,7 @@ public DateTimeOffset InitializedAt
251251
set
252252
{
253253
InitializedAtString = value.ToString(Constants.Iso8601Format);
254-
initializedAtValue = null;
254+
initializedAtValue = value;
255255
}
256256
}
257257

0 commit comments

Comments
 (0)