⁠
kyle wood: Fix up all duplicaate code warnings
Also messed up the ktlint configuration trying to upgrade it, but future
versions are still a broken mess. Sorry about that.
Also messed up the ktlint configuration trying to upgrade it, but future
versions are still a broken mess. Sorry about that.
- /*
- * Minecraft Dev for IntelliJ
- *
- * https://minecraftdev.org
- *
- * Copyright (c) 2023 minecraft-dev
- *
- * MIT License
- */
- package com.demonwav.mcdev.update
- import com.intellij.openapi.updateSettings.impl.UpdateSettings
- enum class Channels(val title: String, val url: String) {
- NIGHTLY("Nightly", "https://plugins.jetbrains.com/plugins/Nightly/8327");
- fun hasChannel(): Boolean {
- return UpdateSettings.getInstance().pluginHosts.contains(url)
- }
- }
- /*
- * Minecraft Dev for IntelliJ
- *
- * https://minecraftdev.org
- *
- * Copyright (c) 2023 minecraft-dev
- *
- * MIT License
- */
- package com.demonwav.mcdev.update
- import com.intellij.openapi.updateSettings.impl.UpdateSettings
- enum class Channels(val title: String, val url: String) {
- NIGHTLY("Nightly", "https://plugins.jetbrains.com/plugins/Nightly/8327"),
- ;
- fun hasChannel(): Boolean {
- return UpdateSettings.getInstance().pluginHosts.contains(url)
- }
- }