Comcast / Comcast/Speed-testJS

implicitly converted from boolean to number.

Open
#119 0 comments 0 reactions 2 assignees Claimed by @Pradhyumna02 View on GitHub
bug
Dominant language
JavaScript
Stars
91
Forks
51
PR merge metrics
No merged PRs in 30d

Description

https://github.com/Comcast/Speed-testJS/blob/master/controllers/CalculatorController.js

if (typeof req.body === 'undefined' && (!(req.body).length > 0) ) {
can this be
if (typeof req.body === 'undefined' && ((req.body).length < 0) ) {

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.