From a8aeb8a9e2492ee44b8b1e6d0b9c8511eb23f7bf Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 21 Aug 2016 16:05:42 +0200 Subject: [PATCH] Fix mixed indentation Fixes #12758. --- src/apps/codycam/VideoConsumer.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/apps/codycam/VideoConsumer.cpp b/src/apps/codycam/VideoConsumer.cpp index 7705c3de8e..15d3440437 100644 --- a/src/apps/codycam/VideoConsumer.cpp +++ b/src/apps/codycam/VideoConsumer.cpp @@ -669,23 +669,23 @@ VideoConsumer::LocalSave(char* filename, BBitmap* bitmap) if (output->SetTo(filename, B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE) == B_NO_ERROR) { BBitmapStream input(bitmap); status_t err = BTranslatorRoster::Default()->Translate(&input, NULL, NULL, - output, fImageFormat); - if (err == B_OK) { - err = SetFileType(output, fTranslator, fImageFormat); - if (err != B_OK) - UpdateFtpStatus(B_TRANSLATE("Error setting type of output file")); - } - else - UpdateFtpStatus(B_TRANSLATE("Error writing output file")); + output, fImageFormat); + if (err == B_OK) { + err = SetFileType(output, fTranslator, fImageFormat); + if (err != B_OK) + UpdateFtpStatus(B_TRANSLATE("Error setting type of output file")); + } + else + UpdateFtpStatus(B_TRANSLATE("Error writing output file")); input.DetachBitmap(&bitmap); output->Unset(); delete output; return B_OK; - } else { + } else { UpdateFtpStatus(B_TRANSLATE("Error creating output file")); - return B_ERROR; - } + return B_ERROR; + } }