SomeCat
02/05/2021, 3:09 PMMatteo Mirk
02/05/2021, 4:04 PMSomeCat
02/05/2021, 6:21 PMMatteo Mirk
02/08/2021, 10:21 AMkey
, 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 (null
or Result
), or you should throw in each case. Don’t log and throw, do either but not both.SomeCat
02/09/2021, 7:12 AMMatteo Mirk
02/09/2021, 9:10 AMSomeCat
02/12/2021, 12:23 PM