Changeset 981 for cpp/frams/genetics


Ignore:
Timestamp:
07/08/20 13:12:16 (4 years ago)
Author:
Maciej Komosinski
Message:

Fixed misleading indentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/genoconv.cpp

    r972 r981  
    159159        if (Geno::formatIsOneOf(in.getFormat(), format_list))
    160160        {
    161                 if (converter_missing) *converter_missing = false; return in;
     161                if (converter_missing) *converter_missing = false;
     162                return in;
    162163        }
    163164        GenoConverter *path[10];
    164165        int dep;
    165166        GenoConverter **ret;
    166         if (in.isInvalid()) { if (converter_missing) *converter_missing = false; return Geno("", Geno::INVALID_FORMAT, "", "invalid genotype cannot be converted"); }
     167        if (in.isInvalid())
     168        {
     169                if (converter_missing) *converter_missing = false;
     170                return Geno("", Geno::INVALID_FORMAT, "", "Invalid genotype cannot be converted");
     171        }
    167172        int mapavail;
    168173        for (dep = 1; dep < (int)sizeof(path); dep++) //iterative deepening
    169174                if (ret = getPath(in.getFormat(), format_list, path, dep, &mapavail)) break;
    170         if (!ret) { if (converter_missing) *converter_missing = true; return Geno("", Geno::INVALID_FORMAT, "", "converter not found"); }
     175        if (!ret)
     176        {
     177                if (converter_missing) *converter_missing = true;
     178                return Geno("", Geno::INVALID_FORMAT, "", "Converter not found");
     179        }
    171180        if (converter_missing) *converter_missing = false;
    172181        if (!map) mapavail = 0;
Note: See TracChangeset for help on using the changeset viewer.