Skip to content

Commit

Permalink
fixup! addressed comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
peihe committed Jan 24, 2017
1 parent 974975e commit fb54273
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -92,10 +92,12 @@ public static void setDefaultConfigInWorkers(PipelineOptions options) {
*/
@VisibleForTesting
static FileSystem getFileSystemInternal(URI uri) {
checkNotNull(
defaultConfig,
"Expect the runner have called setDefaultConfigInWorkers().");
String lowerCaseScheme = (uri.getScheme() != null
? uri.getScheme().toLowerCase() : LocalFileSystemRegistrar.LOCAL_FILE_SCHEME);
return getRegistrarInternal(lowerCaseScheme)
.fromOptions(checkNotNull(defaultConfig, "defaultConfig"));
return getRegistrarInternal(lowerCaseScheme).fromOptions(defaultConfig);
}

/**
Expand Down

0 comments on commit fb54273

Please sign in to comment.