Skip to content

Commit

Permalink
chore: remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
SrIzan10 committed Dec 28, 2023
1 parent 9c32a1a commit 387dff2
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions electron/updateChecker.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
import { app } from "electron"
import getPlatform from "./utils/getPlatform.js"

export default async function updateChecker() {
const currentOS = getPlatform()
const getLatest = await fetch('https://api.github.com/repos/sern-handler/gui/releases/latest')
.then(res => res.json())

const dlUrl = getLatest.assets.map((asset) => {
switch (asset.content_type) {
case 'application/x-msdownload':
return 'windows'
case 'application/vnd.appimage':
return 'linux'
case 'application/x-apple-diskimage':
return 'macOS'
default:
return null
}
})

if (`v${app.getVersion()}` !== getLatest.tag_name) {
return { version: getLatest.tag_name as string, url: getLatest.html_url as string }
Expand Down

0 comments on commit 387dff2

Please sign in to comment.