Skip to content

Commit

Permalink
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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);
}

3 changes: 1 addition & 2 deletions core/src/main/java/org/jruby/util/AbstractFileResource.java
Original file line number Diff line number Diff line change
@@ -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.