Update scalafmt to 3.0.8

This commit is contained in:
eikek
2021-12-11 20:30:47 +01:00
parent 61379ffff7
commit c21b2cdd29
29 changed files with 42 additions and 42 deletions

View File

@ -236,9 +236,9 @@ trait Conversions {
i.concPerson.map(mkIdName),
i.concEquip.map(mkIdName),
i.folder.map(mkIdName),
Nil, //attachments
Nil, //tags
Nil, //customfields
Nil, // attachments
Nil, // tags
Nil, // customfields
i.notes,
Nil // highlight
)

View File

@ -141,7 +141,7 @@ object ContentDisposition {
}
private val parser = makeParser(mimeValue)
//private val origParser = makeParser(Rfc7230.token | Rfc7230.quotedString)
// private val origParser = makeParser(Rfc7230.token | Rfc7230.quotedString)
implicit val headerInstance: Header[ContentDisposition, Header.Single] = {
val oh = `Content-Disposition`.headerInstance

View File

@ -140,9 +140,9 @@ object IntegrationEndpointRoutes {
cfg: Config.IntegrationEndpoint.AllowedIps
): HttpRoutes[F] =
HttpRoutes { req =>
//The `req.from' take the X-Forwarded-For header into account,
//which is not desirable here. The `http-header' auth config
//can be used to authenticate based on headers.
// The `req.from' take the X-Forwarded-For header into account,
// which is not desirable here. The `http-header' auth config
// can be used to authenticate based on headers.
val from = req.remote.map(_.host)
if (from.exists(cfg.containsAddress)) OptionT.none[F, Response[F]]
else OptionT.pure(Responses.forbidden[F])