lint: formatting

This commit is contained in:
Tyler Wilding 2022-04-17 20:07:36 -04:00
parent 95eb86cfb2
commit c01078cbdb
No known key found for this signature in database
GPG key ID: A89403EB356ED106
2 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,4 @@
import { invoke } from '@tauri-apps/api/tauri'
import { invoke } from "@tauri-apps/api/tauri";
export async function getHighestSimd() {
try {

View file

@ -36,18 +36,20 @@ export async function isAVXSupported() {
return RequirementStatus.Unknown;
}
if (highestSIMD.toLowerCase().startsWith("avx")) {
return RequirementStatus.Met
return RequirementStatus.Met;
}
return RequirementStatus.Failed;
}
export async function isOpenGLVersionSupported(version) {
// TODO - glewinfo not pre-compiled to work on linux yet!
if (await os.platform() === "linux" || await os.platform() === "darwin") {
if ((await os.platform()) === "linux" || (await os.platform()) === "darwin") {
return RequirementStatus.Unknown;
}
// Otherwise, query for the version
let command = Command.sidecar("bin/glewinfo", ["-version", version], { cwd: "bin" });
let command = Command.sidecar("bin/glewinfo", ["-version", version], {
cwd: "bin",
});
try {
let output = await command.execute();
if (output.code === 0) {