Skip to content

Commit

Permalink
HADOOP-18516. Style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sreeb-msft committed Dec 28, 2022
1 parent 7536b9e commit 3109c68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ public void initialize(URI uri, Configuration configuration)
this.setWorkingDirectory(this.getHomeDirectory());

if (abfsConfiguration.getCreateRemoteFileSystemDuringInitialization()) {
TracingContext tracingContext = new TracingContext(clientCorrelationId,
fileSystemId, FSOperationType.CREATE_FILESYSTEM, tracingHeaderFormat, listener);
TracingContext tracingContext = new TracingContext(clientCorrelationId, fileSystemId, FSOperationType.CREATE_FILESYSTEM, tracingHeaderFormat, listener);
if (this.tryGetFileStatus(new Path(AbfsHttpConstants.ROOT_PATH), tracingContext) == null) {
try {
this.createFileSystem(tracingContext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1109,9 +1109,8 @@ private String chooseSASToken(String operation, String path) throws IOException
// chooses the SAS token provider class if it is configured, otherwise reads the configured fixed token
if (sasTokenProvider == null) {
return abfsConfiguration.get(ConfigurationKeys.FS_AZURE_SAS_FIXED_TOKEN);
} else {
return sasTokenProvider.getSASToken(this.accountName, this.filesystem, path, operation);
}
return sasTokenProvider.getSASToken(this.accountName, this.filesystem, path, operation);
}

/**
Expand Down Expand Up @@ -1183,7 +1182,7 @@ protected URL createRequestUrl(final String path, final String query)
} catch (AzureBlobFileSystemException ex) {
LOG.debug("Unexpected error.", ex);
throw new InvalidUriException(path);
}
}

final StringBuilder sb = new StringBuilder();
sb.append(base);
Expand Down

0 comments on commit 3109c68

Please sign in to comment.