Skip to content

Commit db6ef9c

Browse files
committed
Name a function argument for more clarity
1 parent d1efc5f commit db6ef9c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

check-for-updates.main.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ val datesPattern = DateTimeFormatter.ofPattern("EEE LLL dd HH:mm:ss z yyyy")
2222
val feedUrl = URL("https://developer.android.com/feeds/androidx-release-notes.xml")
2323
val reader = tryToGet(
2424
{ XmlReader(feedUrl) },
25-
5,
25+
retryCount = 5,
2626
"Failed to initialize the feed reader",
2727
"All attempts to initialize the feed reader failed."
2828
)

create-new-release-notes.main.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ val writer = File("release-notes.html").bufferedWriter()
2929
// and specifically, the first entry of the feed
3030
val reader = tryToGet(
3131
{ XmlReader(feedUrl) },
32-
10,
32+
retryCount = 10,
3333
"Failed to initialize the feed reader",
3434
"All attempts to initialize the feed reader failed."
3535
)
@@ -78,7 +78,7 @@ fun toLink(element: Element) = element.attr("href")
7878
// See https://github.com/jhy/jsoup/issues/1686 for the reason.
7979
fun toDocument(link: String) = tryToGet(
8080
{ Pair(link, Jsoup.connect(link).get()) },
81-
5,
81+
retryCount = 5,
8282
"Failed to get $link",
8383
"All attempts to get the document failed."
8484
)

set-rss-last-update.main.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ val feedUrl = URL("https://developer.android.com/feeds/androidx-release-notes.xm
1919

2020
val reader = tryToGet(
2121
{ XmlReader(feedUrl) },
22-
5,
22+
retryCount = 5,
2323
"Failed to initialize the feed reader",
2424
"All attempts to initialize the feed reader failed."
2525
)

0 commit comments

Comments
 (0)