Skip to content

Commit

Permalink
Fix updater
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgio committed Jun 4, 2018
1 parent 77300d3 commit 61cd1d1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/org/chorusmc/chorus/updater/Updater.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.chorusmc.chorus.updater

import org.apache.commons.io.FileUtils
import org.chorusmc.chorus.Chorus
import org.chorusmc.chorus.configuration.ChorusFolder
import org.chorusmc.chorus.json.JSONParser
import org.apache.commons.io.FileUtils
import org.json.simple.JSONArray
import org.json.simple.JSONObject
import java.io.File
Expand All @@ -20,10 +20,7 @@ class Updater {
private var parsed: JSONObject? = null

val isUpdatePresent: Boolean
get() =
latestVersion
.replace("v", "")
.toLowerCase() != Chorus.VERSION
get() = Chorus.VERSION != latestVersion.replace("v", "")

val latestVersion: String
get() {
Expand Down

0 comments on commit 61cd1d1

Please sign in to comment.