Skip to content
Permalink
Browse files
[skip ci] trivial style changes
  • Loading branch information
enebo committed Dec 4, 2014
1 parent 729acbf commit 1721b25b12a9292f178b22493a95374def67f0a1
Showing with 4 additions and 6 deletions.
  1. +3 −4 core/src/main/java/org/jruby/runtime/load/LibrarySearcher.java
  2. +1 −2 core/src/main/java/org/jruby/util/AbstractFileResource.java
@@ -85,7 +85,7 @@ public FoundLibrary findLibrary(String baseName, SuffixType suffixType) {

// Since searching for a service library doesn't take the suffix into account, there's no need
// to perform it more than once.
if ((library == null) && (searchedForServiceLibrary == false)) {
if (library == null && !searchedForServiceLibrary) {
library = findServiceLibrary(baseName, suffix);
searchedForServiceLibrary = true;
}
@@ -236,11 +236,10 @@ public ResourceLibrary(String searchName, String scriptName, FileResource resour

@Override
public void load(Ruby runtime, boolean wrap) {
InputStream is = null;
InputStream is;
try {
is = new BufferedInputStream(resource.inputStream(), 32768);
}
catch(IOException e) {
} catch(IOException e) {
throw runtime.newLoadError("no such file to load -- " + searchName, searchName);
}

@@ -15,8 +15,7 @@ public InputStream inputStream() throws ResourceException {
}
try {
return openInputStream();
}
catch (IOException e) {
} catch (IOException e) {
throw new ResourceException.IOError(e);
}
}

0 comments on commit 1721b25

Please sign in to comment.