Move condition in if statement to discard work earlier

This commit is contained in:
Luis Díaz Más 2017-12-19 19:54:17 +01:00
parent d82b9434e1
commit 45fe44aa2f

View File

@ -708,11 +708,10 @@ namespace Action {
if (!first)
std::cout << " ";
first = false;
if ( Params::instance().binary_
&& ( md.typeId() == Exiv2::undefined
if (md.size() > 128 && Params::instance().binary_ && (
md.typeId() == Exiv2::undefined
|| md.typeId() == Exiv2::unsignedByte
|| md.typeId() == Exiv2::signedByte)
&& md.size() > 128) {
|| md.typeId() == Exiv2::signedByte)) {
std::cout << _("(Binary value suppressed)") << std::endl;
return true;
}