File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
dotnet/src/webdriver/Firefox Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -178,15 +178,16 @@ private static string ReadIdFromInstallRdf(string root)
178178
179179 private static string ReadIdFromManifestJson ( string root )
180180 {
181- string id ;
181+ string id = string . Empty ;
182182 string manifestJsonPath = Path . Combine ( root , JsonManifestFileName ) ;
183183
184184 var manifestObject = JsonNode . Parse ( File . ReadAllText ( manifestJsonPath ) ) ;
185185 if ( manifestObject ! [ "applications" ] ? [ "gecko" ] ? [ "id" ] is { } idNode )
186186 {
187187 id = idNode . ToString ( ) . Trim ( ) ;
188188 }
189- else
189+
190+ if ( string . IsNullOrEmpty ( id ) )
190191 {
191192 string addInName = manifestObject [ "name" ] ! . ToString ( ) . Replace ( " " , "" ) ;
192193 string addInVersion = manifestObject [ "version" ] ! . ToString ( ) ;
You can’t perform that action at this time.
0 commit comments