basically I have made a fix on a bug. The fix has worked but now I am wondering if my logic is flawed. I have pasted my code below.Basically I want to know if the 2 lines with an * have an issue. I have written that if data.length >=0 then it equals true, and also else-if data.length && _routing, then it equals to true as well. Is my logic flawed ? Will my else-if condition ever be met, or will it cause an issue ? I am having some trouble visualizing it and could use some help. If its flawed, how should I go about it ? Thank you
if(data.length > 0) {
* if(data.length >= 0) {
if (_outStr == null){
_receivedFileContent = true;
fileCreate();
}
_outStr.write(data);
* } else if (data.length == 0 && _routing) {
_receivedBytearrayZero = true;
}
Aucun commentaire:
Enregistrer un commentaire