mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 616765 - Useless Exists check in nsUpdateDriver.cpp. r=dtownsend, a=approval2.0
This commit is contained in:
parent
53f5372593
commit
17dc66ec01
@ -502,6 +502,7 @@ ProcessUpdates(nsIFile *greDir, nsIFile *appDir, nsIFile *updRootDir,
|
||||
rv = updRootDir->Clone(getter_AddRefs(updatesDir));
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
rv = updatesDir->AppendNative(NS_LITERAL_CSTRING("updates"));
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
@ -510,11 +511,6 @@ ProcessUpdates(nsIFile *greDir, nsIFile *appDir, nsIFile *updRootDir,
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
PRBool exists;
|
||||
rv = updatesDir->Exists(&exists);
|
||||
if (NS_FAILED(rv) || !exists)
|
||||
return rv;
|
||||
|
||||
nsCOMPtr<nsILocalFile> statusFile;
|
||||
if (GetStatusFile(updatesDir, statusFile) && IsPending(statusFile)) {
|
||||
nsCOMPtr<nsILocalFile> versionFile;
|
||||
|
Loading…
Reference in New Issue
Block a user