Package kit: more style fixes.

Pointed out by Axel this time. Thanks!
This commit is contained in:
Adrien Destugues 2016-08-21 16:36:17 +02:00
parent a22f114f7d
commit 36a9daf663
2 changed files with 2 additions and 4 deletions

View File

@ -110,8 +110,7 @@ BPackageManager::Init(uint32 flags)
// well. But we can easily filter those out. // well. But we can easily filter those out.
_AddInstalledRepository(fSystemRepository); _AddInstalledRepository(fSystemRepository);
if (!fSystemRepository->IsInstalled()) if (!fSystemRepository->IsInstalled()) {
{
// Only add the home repository if the directory exists // Only add the home repository if the directory exists
BPath path; BPath path;
status_t error = find_directory(B_USER_PACKAGES_DIRECTORY, &path); status_t error = find_directory(B_USER_PACKAGES_DIRECTORY, &path);

View File

@ -92,8 +92,7 @@ PackageDaemon::MessageReceived(BMessage* message)
error = message->FindInt64("root", &nodeRef.node); error = message->FindInt64("root", &nodeRef.node);
if (fSystemRoot != NULL && (error != B_OK if (fSystemRoot != NULL && (error != B_OK
|| fSystemRoot->NodeRef() == nodeRef)) || fSystemRoot->NodeRef() == nodeRef)) {
{
fSystemRoot->HandleRequest(DetachCurrentMessage()); fSystemRoot->HandleRequest(DetachCurrentMessage());
} else if (error == B_OK) { } else if (error == B_OK) {
Root* root = _FindRoot(nodeRef); Root* root = _FindRoot(nodeRef);