mirror of https://github.com/status-im/metro.git
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:
parent
3ed489a35a
commit
280779f5c0
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue