GIFTranslator: Combine nested if statements
...into single conditional
This commit is contained in:
parent
78bfaa98e1
commit
9d41bc18bb
@ -337,8 +337,7 @@ GIFView::MessageReceived(BMessage* message)
|
||||
if (fColorCountMF->IsEnabled()) {
|
||||
int32 sizeInBits;
|
||||
if (message->FindInt32(GIF_SETTING_PALETTE_SIZE, &sizeInBits)
|
||||
>= B_OK) {
|
||||
if (sizeInBits > 0 && sizeInBits <= 8)
|
||||
>= B_OK && sizeInBits > 0 && sizeInBits <= 8) {
|
||||
fSettings->SetGetInt32(GIF_SETTING_PALETTE_SIZE,
|
||||
&sizeInBits);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user