@@ -415,9 +415,6 @@ public ConfigRemoteDictionary(IDictionary<string, ConfigRemote> dictionary)
415
415
[ Location ( "cache/repoinfo.yaml" , LocationAttribute . Location . LibraryFolder ) ]
416
416
sealed class RepositoryInfoCache : ManagedCacheBase < RepositoryInfoCache > , IRepositoryInfoCache
417
417
{
418
- public static readonly GitRemote DefaultGitRemote = new GitRemote ( ) ;
419
- public static readonly GitBranch DefaultGitBranch = new GitBranch ( ) ;
420
-
421
418
[ SerializeField ] private string lastUpdatedAtString = DateTimeOffset . MinValue . ToString ( ) ;
422
419
[ SerializeField ] private string lastVerifiedAtString = DateTimeOffset . MinValue . ToString ( ) ;
423
420
[ SerializeField ] private GitRemote gitRemote ;
@@ -428,7 +425,7 @@ public GitRemote? CurrentGitRemote
428
425
get
429
426
{
430
427
ValidateData ( ) ;
431
- return gitRemote . Equals ( DefaultGitRemote ) ? ( GitRemote ? ) null : gitRemote ;
428
+ return gitRemote . Equals ( GitRemote . Default ) ? ( GitRemote ? ) null : gitRemote ;
432
429
}
433
430
set
434
431
{
@@ -439,7 +436,7 @@ public GitRemote? CurrentGitRemote
439
436
440
437
if ( ! Nullable . Equals ( gitRemote , value ) )
441
438
{
442
- gitRemote = value ?? DefaultGitRemote ;
439
+ gitRemote = value ?? GitRemote . Default ;
443
440
isUpdated = true ;
444
441
}
445
442
@@ -452,7 +449,7 @@ public GitBranch? CurentGitBranch
452
449
get
453
450
{
454
451
ValidateData ( ) ;
455
- return gitBranch . Equals ( DefaultGitBranch ) ? ( GitBranch ? ) null : gitBranch ;
452
+ return gitBranch . Equals ( GitBranch . Default ) ? ( GitBranch ? ) null : gitBranch ;
456
453
}
457
454
set
458
455
{
@@ -463,7 +460,7 @@ public GitBranch? CurentGitBranch
463
460
464
461
if ( ! Nullable . Equals ( gitBranch , value ) )
465
462
{
466
- gitBranch = value ?? DefaultGitBranch ;
463
+ gitBranch = value ?? GitBranch . Default ;
467
464
isUpdated = true ;
468
465
}
469
466
0 commit comments