Skip to content

Commit

Permalink
chore(RepositoryModelCodec): Modify documentation commentary on :48
Browse files Browse the repository at this point in the history
  • Loading branch information
aivruu committed Mar 31, 2024
1 parent 71fd612 commit 7131511
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ public enum RepositoryModelCodec implements JsonDeserializer<GitHubRepositoryMod
final var description = jsonObject.get("description").getAsString();
final var licenseKey = jsonObject.get("license").getAsJsonObject().get("key").getAsString();
/*
* Verifies if the license key for this repository starts
* with "gpl-3.0", if it is true, we will cut the string between
* from the third character. Other-wise just use the provided key.
* Verifies if the license key for this repository is "gpl-3.0",
* if it is true, we will cut the string between from the third
* character. Other-wise just use the provided key.
*/
final var licenseType = RepositoryLicense.valueOf(licenseKey.equals("gpl-3.0")
? licenseKey.substring(0, 3).toUpperCase(Locale.ROOT)
Expand Down

0 comments on commit 7131511

Please sign in to comment.