Skip to content

Commit

Permalink
Camel-case local variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 19, 2023
1 parent 4800a58 commit b5be28c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ protected void parseSynchronusly() throws IOException {
// we'll always do it with our own input stream
//
// That means we may have to guess format by extensions:
final Optional<RDFFormat> formatByFilename = getSourceFile().map(Path::getFileName).map(Path::toString)
final Optional<RDFFormat> formatByFileName = getSourceFile().map(Path::getFileName).map(Path::toString)
.flatMap(Rio::getParserFormatForFileName);
// TODO: for the excited.. what about the extension after following
// symlinks?

final RDFFormat format = formatByMimeType.orElse(formatByFilename.orElse(null));
final RDFFormat format = formatByMimeType.orElse(formatByFileName.orElse(null));
try (InputStream in = Files.newInputStream(getSourceFile().get())) {
loader.load(in, base, format, rdfHandler);
}
Expand Down

0 comments on commit b5be28c

Please sign in to comment.