Skip to content

Commit

Permalink
simplify NaN checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kemsky committed Nov 5, 2015
1 parent b2e6c51 commit 596059d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/com/kemsky/Stream.as
Original file line number Diff line number Diff line change
Expand Up @@ -1803,7 +1803,7 @@ package com.kemsky
{
}

if(!(index <= 0) && !(index > 0))
if(index != index)
{
throw new Error("Incorrect index: " + String(name));
}
Expand All @@ -1829,7 +1829,7 @@ package com.kemsky
{
}

if(!(index <= 0) && !(index > 0))
if(index != index)
{
throw new Error("Incorrect index: " + String(name));
}
Expand Down Expand Up @@ -1862,7 +1862,7 @@ package com.kemsky
{
}

if(!(index <= 0) && !(index > 0))
if(index != index)
{
return false;
}
Expand Down

0 comments on commit 596059d

Please sign in to comment.