Commit 63916a0 1 parent 2a7700a commit 63916a0 Copy full SHA for 63916a0
File tree 1 file changed +3
-16
lines changed
src/NuGet.Core/NuGet.ProjectModel
1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -122,27 +122,14 @@ private static CacheFile ReadCacheFile(JsonElement cursor)
122
122
private static object GetCacheFile ( CacheFile cacheFile )
123
123
{
124
124
var json = new Dictionary < string , object > ( ) ;
125
-
126
125
json [ VersionProperty ] = cacheFile . Version ;
127
-
128
- if ( ! string . IsNullOrEmpty ( cacheFile . DgSpecHash ) )
129
- {
130
- json [ DGSpecHashProperty ] = cacheFile . DgSpecHash ;
131
- }
132
-
126
+ json [ DGSpecHashProperty ] = cacheFile . DgSpecHash ;
133
127
json [ SuccessProperty ] = cacheFile . Success ;
134
128
135
129
if ( cacheFile . Version >= 2 )
136
130
{
137
- if ( ! string . IsNullOrEmpty ( cacheFile . ProjectFilePath ) )
138
- {
139
- json [ ProjectFilePathProperty ] = cacheFile . ProjectFilePath ;
140
- }
141
-
142
- if ( cacheFile . ExpectedPackageFilePaths != null && cacheFile . ExpectedPackageFilePaths . Count > 0 )
143
- {
144
- json [ ExpectedPackageFilesProperty ] = cacheFile . ExpectedPackageFilePaths ;
145
- }
131
+ json [ ProjectFilePathProperty ] = cacheFile . ProjectFilePath ;
132
+ json [ ExpectedPackageFilesProperty ] = cacheFile . ExpectedPackageFilePaths ;
146
133
147
134
if ( cacheFile . LogMessages != null && cacheFile . LogMessages . Count > 0 )
148
135
{
You can’t perform that action at this time.
0 commit comments