Skip to content

Commit

Permalink
style: format code with Google Java Format
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in ae9dd7b according to the output
from Google Java Format.

Details: #134
  • Loading branch information
deepsource-autofix[bot] authored Jul 8, 2024
1 parent ae9dd7b commit c99dae2
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ public class StripReader extends Reader {
/**
* Constructs a {@link StripReader} object.
*
* @param chapter The Chapter object representing the chapter being read.
* @param mangaService The MangaService object used for manga-related operations.
* @param chapter The Chapter object representing the chapter being read.
* @param mangaService The MangaService object used for manga-related operations.
* @param settingsService The SettingsService object used for managing reader settings.
*/
public StripReader(Chapter chapter, MangaService mangaService, SettingsService settingsService) {
super(chapter, mangaService, settingsService);
addClassName("strip-reader");
var chapters = mangaService.getChapterPages(chapter.getId());

//get height of first and second image
// get height of first and second image

int imgHeight;
var firstImgUrl = chapters.getFirst();
Expand All @@ -69,8 +69,8 @@ public StripReader(Chapter chapter, MangaService mangaService, SettingsService s
imgHeight = higher == -1 ? 10000 : higher;
}

//60 % for manga pages - typically shorter e.g. less than 2000px in height
//5 % for manhwa pages - typically longer e.g. more than 2000px in height
// 60 % for manga pages - typically shorter e.g. less than 2000px in height
// 5 % for manhwa pages - typically longer e.g. more than 2000px in height

double ratio = imgHeight < 2000 ? 0.6 : 0.05;

Expand Down Expand Up @@ -252,5 +252,4 @@ private int getImageHeightFromUrl(String url) {
return -1;
}
}

}

0 comments on commit c99dae2

Please sign in to comment.