Skip to content

Commit 50c8846

Browse files
committed
Refactor: remove unused imports and simplify MCSupport method in ConnectorAPI
1 parent 2bdedab commit 50c8846

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/main/java/fr/sandro642/github/ConnectorAPI.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22

33
import fr.sandro642.github.hook.MCSupport;
44
import fr.sandro642.github.jobs.JobGetInfos;
5-
import fr.sandro642.github.jobs.misc.MethodType;
65
import fr.sandro642.github.jobs.misc.ResourceType;
7-
import fr.sandro642.github.jobs.misc.VersionType;
86
import fr.sandro642.github.utils.Logger;
97
import fr.sandro642.github.utils.StoreAndRetrieve;
108
import fr.sandro642.github.utils.YamlUtils;
11-
import org.jetbrains.annotations.Nullable;
129

1310
/**
1411
* ConnectorAPI est une librairie Java permettant de créer un lien de communication entre son projet Java et une API Rest Fastify.
@@ -89,7 +86,7 @@ public static YamlUtils YamlUtils() {
8986
* Retourne une instance de MCSupport si le projet est un projet Minecraft
9087
* @return MCSupport ou null si ce n'est pas un projet Minecraft
9188
*/
92-
public static @Nullable MCSupport MCSupport() {
89+
public static MCSupport MCSupport() {
9390
if (MCSupport().isMCProject()) {
9491
return new MCSupport();
9592
} else {

0 commit comments

Comments
 (0)