Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKahr committed Nov 17, 2024
1 parent 17e8b30 commit 71c3e05
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions functions/src/logic/ingestUnityVersions/scrapeVersions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EditorVersionInfo } from "../../model/editorVersionInfo";
import { searchChangesets, SearchMode } from "unity-changeset";
import { EditorVersionInfo } from '../../model/editorVersionInfo';
import { searchChangesets, SearchMode } from 'unity-changeset';

const unity_version_regex = /^(\d+)\.(\d+)\.(\d+)([a-zA-Z]+)(-?\d+)$/;

Expand All @@ -13,7 +13,7 @@ export const scrapeVersions = async (): Promise<EditorVersionInfo[]> => {
if (match) {
const [_, major, minor, patch, lifecycle, build] = match;

if (lifecycle !== "f" || Number(major) < 2017) {
if (lifecycle !== 'f' || Number(major) < 2017) {
return null;
}

Expand All @@ -27,10 +27,8 @@ export const scrapeVersions = async (): Promise<EditorVersionInfo[]> => {
}
return null;
})
.filter((versionInfo): versionInfo is EditorVersionInfo =>
versionInfo !== null
);
.filter((versionInfo): versionInfo is EditorVersionInfo => versionInfo !== null);
}

throw new Error("No Unity versions found!");
throw new Error('No Unity versions found!');
};

0 comments on commit 71c3e05

Please sign in to comment.