Skip to content

Commit

Permalink
refactor: sf
Browse files Browse the repository at this point in the history
  • Loading branch information
cleydyr committed Mar 31, 2024
1 parent a48f4a2 commit f80c6ec
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public class NetworkingGithubLatestVersionProvider implements GithubLatestVersio
public String get(String os, String arch) {
try {
GitHub github = new GitHubBuilder()
.withConnector(GitHubConnectorHttpConnectorAdapter.adapt(new ImpatientHttpConnector(this::setupConnection)))
.withConnector(GitHubConnectorHttpConnectorAdapter.adapt(
new ImpatientHttpConnector(this::setupConnection)))
.withRateLimitHandler(new GitHubRateLimitHandler() {
@Override
public void onError(GitHubConnectorResponse ghcr) throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ public class ApacheFluidHttpClientReleaseDownloader implements ReleaseDownloader
private final HttpHost httpProxy;

public ApacheFluidHttpClientReleaseDownloader(Proxy proxy) throws URISyntaxException, MalformedURLException {
//TODO: respect non-proxy host configuration
this.httpProxy = proxy == null ? null : HttpHost.create(new URL(proxy.getProtocol() + "://" + proxy.getHost() + ":" + proxy.getPort()).toURI());
// TODO: respect non-proxy host configuration
this.httpProxy = proxy == null
? null
: HttpHost.create(
new URL(proxy.getProtocol() + "://" + proxy.getHost() + ":" + proxy.getPort()).toURI());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public CompileSassMojo(
this.githubLatestVersionProvider = githubLatestVersionProvider;
this.cachedFilesDirectoryProvider = cachedFilesDirectoryProviderFactory.get();

if (mavenSession == null || mavenSession.getSettings() == null || mavenSession.getSettings().getActiveProxy() == null) {
if (mavenSession == null
|| mavenSession.getSettings() == null
|| mavenSession.getSettings().getActiveProxy() == null) {
return;
}

Expand Down Expand Up @@ -356,8 +358,8 @@ public void unsetIncompatibleOptions() {
}

public void extractExecutable() throws MojoExecutionException {
DartSassExecutableExtractor dartSassExecutableExtractor
= dartSassExecutableExtractorFactory.getDartSassExecutableExtractor(
DartSassExecutableExtractor dartSassExecutableExtractor =
dartSassExecutableExtractorFactory.getDartSassExecutableExtractor(
dartSassReleaseParameter, cachedFilesDirectory, proxy);

try {
Expand Down

0 comments on commit f80c6ec

Please sign in to comment.