mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 834471 - Part 4: Fix FindBugs warning about unlockProfile() not checking file.delete() return value. r=wesj
This commit is contained in:
parent
ab9b4ee47f
commit
cad9dd0c28
@ -2251,7 +2251,7 @@ public class GeckoAppShell
|
||||
if (GeckoApp.mAppContext != null)
|
||||
GeckoApp.mAppContext.notifyCheckUpdateResult(result);
|
||||
}
|
||||
|
||||
|
||||
public static boolean unlockProfile() {
|
||||
// Try to kill any zombie Fennec's that might be running
|
||||
GeckoAppShell.killAnyZombies();
|
||||
@ -2259,11 +2259,7 @@ public class GeckoAppShell
|
||||
// Then force unlock this profile
|
||||
GeckoProfile profile = GeckoApp.mAppContext.getProfile();
|
||||
File lock = profile.getFile(".parentlock");
|
||||
if (lock.exists()) {
|
||||
lock.delete();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return lock.exists() && lock.delete();
|
||||
}
|
||||
|
||||
public static String getProxyForURI(String spec, String scheme, String host, int port) {
|
||||
|
Loading…
Reference in New Issue
Block a user