Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 5de8809

Browse files
committed
Beautify Andoridacy code.
1 parent 9759537 commit 5de8809

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/src/main/java/com/fox2code/mmm/androidacy/AndroidacyRepoData.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ protected List<RepoModule> populate(JSONObject jsonObject) throws JSONException
129129
jsonObject.optString("zipUrl", ""));
130130
repoModule.notesUrl = filterURL(
131131
jsonObject.optString("notesUrl", ""));
132-
if (repoModule.zipUrl == null)
133-
repoModule.zipUrl = "https://api.androidacy.com/magisk/info/?module=" + moduleId;
134-
if (repoModule.zipUrl == null)
135-
repoModule.zipUrl = jsonObject.getString("url");
132+
if (repoModule.zipUrl == null) {
133+
repoModule.zipUrl = // Fallback url in case the API doesn't have zipUrl
134+
"https://api.androidacy.com/magisk/info/?module=" + moduleId;
135+
}
136136
if (repoModule.notesUrl == null) {
137-
repoModule.notesUrl = // Fallback url in case the API doesn't return one
137+
repoModule.notesUrl = // Fallback url in case the API doesn't have notesUrl
138138
"https://api.androidacy.com/magisk/readme/?module=" + moduleId;
139139
}
140140
repoModule.qualityText = R.string.module_downloads;

0 commit comments

Comments
 (0)