yhabib / csi

0 stars 0 forks source link

Error will always be nil #3

Open olamiko opened 3 years ago

olamiko commented 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

yhabib commented 3 years ago

Good point, I think I first approached differently and then forgot to clean up the code.