Skip to content

Commit

Permalink
chore(RepositoryCodec): Modify some commentaries
Browse files Browse the repository at this point in the history
  • Loading branch information
aivruu committed Aug 26, 2024
1 parent 885a44f commit 24b2e9b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ public enum RepositoryCodec implements JsonDeserializer<GithubRepositoryModel> {
public GithubRepositoryModel deserialize(final JsonElement jsonElement, final Type type,
final JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
final var jsonObject = jsonElement.getAsJsonObject();
if (jsonObject.get("message") != null) { // Checks if the latest repository exists.
if (jsonObject.get("message") != null) { // Checks if the repository exists.
return null;
}
final var repositoryOwner = jsonObject.get("owner").getAsJsonObject().get("login").getAsString();
final var licenseNode = jsonObject.get("license");
var license = "";
// Avoid failures during pre-testing due to non-detected or unavailable license on current repository.
// Avoid failures due to non-detected or unavailable license for the repository.
if (licenseNode.isJsonNull()) {
license = "unknown";
} else {
Expand Down

0 comments on commit 24b2e9b

Please sign in to comment.