Open olamiko opened 3 years ago
In the function readInput, error will always be nil - https://github.com/yhabib/csi/blob/658526d5315ec219fcd95c0c04bdc01ddd80fc35/prework/Go/assignment/xkdc.go#L67. What's the point of checking for error at line then
readInput
Good point, I think I first approached differently and then forgot to clean up the code.
In the function
readInput
, error will always be nil - https://github.com/yhabib/csi/blob/658526d5315ec219fcd95c0c04bdc01ddd80fc35/prework/Go/assignment/xkdc.go#L67. What's the point of checking for error at line then