mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1338086 - Remove useless else blocks in order to reduce complexity in extensions/gio/ r=Dolske
MozReview-Commit-ID: 2OsdUdGgL9O --HG-- extra : rebase_source : ea0c571993a5509aad330b0fef8cd7c1c8866529
This commit is contained in:
parent
870ef630b6
commit
4c352ae1ed
@ -94,8 +94,7 @@ MapGIOResult(GError *result)
|
||||
{
|
||||
if (!result)
|
||||
return NS_OK;
|
||||
else
|
||||
return MapGIOResult(result->code);
|
||||
return MapGIOResult(result->code);
|
||||
}
|
||||
/** Return values for mount operation.
|
||||
* These enums are used as mount operation return values.
|
||||
@ -237,17 +236,16 @@ nsGIOInputStream::MountVolume() {
|
||||
mount_enclosing_volume_finished,
|
||||
this);
|
||||
mozilla::MonitorAutoLock mon(mMonitorMountInProgress);
|
||||
/* Waiting for finish of mount operation thread */
|
||||
/* Waiting for finish of mount operation thread */
|
||||
while (mMountRes == MOUNT_OPERATION_IN_PROGRESS)
|
||||
mon.Wait();
|
||||
|
||||
|
||||
g_object_unref(mount_op);
|
||||
|
||||
if (mMountRes == MOUNT_OPERATION_FAILED) {
|
||||
return MapGIOResult(mMountErrorCode);
|
||||
} else {
|
||||
return NS_OK;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -446,7 +444,7 @@ nsGIOInputStream::DoRead(char *aBuf, uint32_t aCount, uint32_t *aCountRead)
|
||||
mBytesRemaining -= *aCountRead;
|
||||
return NS_OK;
|
||||
}
|
||||
else if (mDirOpen) {
|
||||
if (mDirOpen) {
|
||||
// directory read
|
||||
while (aCount && rv != NS_BASE_STREAM_CLOSED)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user