Skip to content

Commit

Permalink
Simplify.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoffelen committed May 30, 2022
1 parent 8f2c0d4 commit c6753b0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ import { getAndroidVersion } from "./providers/android";
export const lookupVersion = async(platform, bundleId, country = "us") => {
switch (platform) {
case "ios":
res = await getIosVersion(bundleId, country);
break;
return getIosVersion(bundleId, country);
case "android":
res = await getAndroidVersion(bundleId, country);
break;
return getAndroidVersion(bundleId, country);
default:
throw new Error("Unsupported platform defined.");
}

return res;
};

0 comments on commit c6753b0

Please sign in to comment.