Skip to content

Commit

Permalink
Convert version major and minor to numbers (#180)
Browse files Browse the repository at this point in the history
* Convert version major and minor to numbers

* fix linting error

Co-authored-by: Webber Takken <[email protected]>
  • Loading branch information
davidmfinol and webbertakken authored Nov 17, 2020
1 parent 8eeb848 commit 9707ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/image-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ImageTag {
facebook,
} = ImageTag.imageSuffixes;

const [major, minor] = version.split('.');
const [major, minor] = version.split('.').map((digit) => Number(digit));
// @see: https://docs.unity3d.com/ScriptReference/BuildTarget.html
switch (platform) {
case Platform.types.StandaloneOSX:
Expand Down

0 comments on commit 9707ad7

Please sign in to comment.