Closed Overdrivr closed 8 years ago
In Repository.js https://github.com/Overdrivr/micro-ci/blob/master/common/models/repository.js#L33
This line does nothing, array can be empty meaning no repository was found, yet it won't return early since the array is defined but empty. Rookie mistake.
Instead, array.length == 0 should be checked
array.length == 0
In Repository.js https://github.com/Overdrivr/micro-ci/blob/master/common/models/repository.js#L33
This line does nothing, array can be empty meaning no repository was found, yet it won't return early since the array is defined but empty. Rookie mistake.
Instead,
array.length == 0
should be checked