Fix parseFloat mistaken uses of "radix"

Summary: It doesn't take a radix. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseFloat

Reviewed By: yungsters

Differential Revision: D5000954

fbshipit-source-id: fe13896196f0369b1dce132cd4f30d086638740e
This commit is contained in:
Andres Suarez 2017-05-03 22:54:17 -07:00 committed by Facebook Github Bot
parent 3ed489a35a
commit 280779f5c0
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ function getAssetDataFromName(filename: string, platforms: Set<string>): AssetDa
if (!(match && match[1])) { if (!(match && match[1])) {
resolution = 1; resolution = 1;
} else { } else {
resolution = parseFloat(match[1], 10); resolution = parseFloat(match[1]);
if (isNaN(resolution)) { if (isNaN(resolution)) {
resolution = 1; resolution = 1;
} }