Adjust ifdef to avoid unreachable code.
Introduced in 1e79c055cd30d21ba5f8c7f81ef911d5d4e295a8.
Adjust ifdef to avoid unreachable code.
Introduced in 1e79c055cd30d21ba5f8c7f81ef911d5d4e295a8.
You could avoid the "guards cross scopes" by moving everything into the else-scope:
}else{
// ...
#ifdef ...
return ...wallet
#endif
throw
}
Also, would be nice if you added a test for the failure case to wallet_disable.py
Assigning "refactoring", since it shouldn't change behavior.
utACK 61f82981b2e12866520a5eceada4bf759754f827
Travis seems to have timed out so I restarted it.
utACK 61f82981b2e12866520a5eceada4bf759754f827
utACK 61f82981b2e12866520a5eceada4bf759754f827
avoid unreachable code
What unreachable code?
I'd assume it is a static analyser warning that in return; throw; the throw is unreachable.
utACK 61f8298.
This code is all disappearing after V0.17 is branched, but fine, utACK 61f82981b2e12866520a5eceada4bf759754f827