Skip to content

Commit 57ac413

Browse files
committed
Refactor ApiFactory: improve code readability by removing unnecessary line breaks
1 parent 8582eca commit 57ac413

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/main/java/fr/sandro642/github/api/ApiFactory.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ public <O, K> Object getSpecData(O type, K value) {
101101
Object nested = rawData.get(type.toString());
102102
if (nested instanceof Map) {
103103
Map<?, ?> nestedMap = (Map<?, ?>) nested;
104-
105104
return nestedMap.get(value.toString());
106105
}
107106
} catch (Exception e) {
@@ -137,11 +136,11 @@ public int getStatusCode() {
137136
*/
138137
public Object display() {
139138
try {
140-
if (rawData == null) {
141-
connectLib.Logger().ERROR(connectLib.LangManager().getMessage(CategoriesType.APIFACTORY_CLASS, "general.mustbe"));
142-
return null;
143-
}
144-
return rawData;
139+
if (rawData == null) {
140+
connectLib.Logger().ERROR(connectLib.LangManager().getMessage(CategoriesType.APIFACTORY_CLASS, "general.mustbe"));
141+
return null;
142+
}
143+
return rawData;
145144
} catch (Exception e) {
146145
connectLib.Logger().ERROR(connectLib.LangManager().getMessage(CategoriesType.APIFACTORY_CLASS, "display.error", "exception", e.getMessage()));
147146
}

0 commit comments

Comments
 (0)