SKALE-2892 fix codacy

parent d7776a30
...@@ -334,13 +334,11 @@ string convertHexToDec(const string& hex_str) { ...@@ -334,13 +334,11 @@ string convertHexToDec(const string& hex_str) {
char *result = mpz_get_str(arr, 10, dec); char *result = mpz_get_str(arr, 10, dec);
ret = result; ret = result;
} catch (exception &e) { } catch (exception &e) {
throw SGXException(INCORRECT_STRING_CONVERSION, e.what());
mpz_clear(dec); mpz_clear(dec);
return ret; throw SGXException(INCORRECT_STRING_CONVERSION, e.what());
} catch (...) { } catch (...) {
throw SGXException(UNKNOWN_ERROR, "");
mpz_clear(dec); mpz_clear(dec);
return ret; throw SGXException(UNKNOWN_ERROR, "");
} }
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment