Skip to content

Commit 2574e9e

Browse files
authored
Merge pull request #638 from xuwei-k/apply-auto-insertion
fix `auto insertion` warnings
2 parents c2ca2ee + f9ebe55 commit 2574e9e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/actors/DocumentationActor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ class DocumentationActor(
561561
case GetSitemap(replyTo) =>
562562
sitemapGenerator
563563
.ask[Sitemap](replyTo => GenerateSitemap(documentation, replyTo))
564-
.map(DocumentationSitemap)
564+
.map(DocumentationSitemap.apply)
565565
.pipeTo(replyTo.toClassic)
566566
Behaviors.same
567567
}

app/controllers/documentation/DocumentationController.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class DocumentationController @Inject() (
261261
* - Otherwise, we redirect them to the latest for the default language.
262262
*/
263263
def latest(lang: Option[Lang], path: String) = DocsAction { actor =>
264-
(actor ? GetSummary).mapTo[DocumentationSummary].map { summary =>
264+
(actor ? GetSummary.apply).mapTo[DocumentationSummary].map { summary =>
265265
val (selectedLang, version) = lang match {
266266
// requested the default lang
267267
case Some(l) if l == summary.defaultLang => None -> summary.defaultLatest
@@ -290,7 +290,7 @@ class DocumentationController @Inject() (
290290
summary.translations.contains(lang) && summary.translations(lang) == summary.defaultLatest
291291

292292
def sitemap = DocsAction { actor =>
293-
(actor ? GetSitemap).mapTo[DocumentationSitemap].map { docSitemap =>
293+
(actor ? GetSitemap.apply).mapTo[DocumentationSitemap].map { docSitemap =>
294294
Ok(docSitemap.sitemap.toXml)
295295
}
296296
}

0 commit comments

Comments
 (0)