diff --git a/core/src/main/scala/codeartifact/CodeArtifact.scala b/core/src/main/scala/codeartifact/CodeArtifact.scala index fb18091..fbaba52 100644 --- a/core/src/main/scala/codeartifact/CodeArtifact.scala +++ b/core/src/main/scala/codeartifact/CodeArtifact.scala @@ -34,7 +34,12 @@ object CodeArtifact { def getAuthToken(repo: CodeArtifactRepo): Option[String] = try { - Some(getAuthTokenFromRequest(Region.of(repo.region), getAuthorizationTokenRequest(repo.domain, repo.owner))) + Some( + getAuthTokenFromRequest( + Region.of(repo.region), + getAuthorizationTokenRequest(repo.domain, repo.owner) + ) + ) } catch { case _: Throwable => None } diff --git a/core/src/main/scala/codeartifact/CodeArtifactRepo.scala b/core/src/main/scala/codeartifact/CodeArtifactRepo.scala index c71a70a..02d5cdc 100644 --- a/core/src/main/scala/codeartifact/CodeArtifactRepo.scala +++ b/core/src/main/scala/codeartifact/CodeArtifactRepo.scala @@ -20,7 +20,14 @@ object CodeArtifactRepo { def fromUrl(url: String): CodeArtifactRepo = { url match { case CodeArtifactUrl(host, domain, owner, region, repo) => - CodeArtifactRepo(name = repo, domain = domain, host = host, owner = owner, region = region, url = url) + CodeArtifactRepo( + name = repo, + domain = domain, + host = host, + owner = owner, + region = region, + url = url + ) case _ => sys.error(s"Invalid codeArtifactUrl: $url") }