Matteo Mirk02/05/2021, 4:04 PM
SomeCat02/05/2021, 6:21 PM
Matteo Mirk02/08/2021, 10:21 AM
, even better without safe call operators it won’t even compile. Anyway, after the initial check on the file you shouldn’t continue the execution: it’s useless to the logic you want. Instead you should either return early with some meaningful value (
), or you should throw in each case. Don’t log and throw, do either but not both.
SomeCat02/09/2021, 7:12 AM
Matteo Mirk02/09/2021, 9:10 AM
SomeCat02/12/2021, 12:23 PM