DavidHoude / homework

0 stars 0 forks source link

Need validation of type prior to processing #5

Open DavidHoude opened 4 years ago

DavidHoude commented 4 years ago

https://github.com/DavidHoude/homework/blob/cb2abfb41bcfa2a72cea182dca5ab1f9bf99ed33/processing/find-cpu.js#L23

This else() is pretty broad and would catch anything. This should be type checked to verify it's an integer before performing arithmetic operations.

DavidHoude commented 4 years ago

resolved issue with https://github.com/DavidHoude/homework/pull/6