Skip to content

Commit

Permalink
[skip ci] trivial style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Dec 4, 2014
1 parent 729acbf commit 1721b25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
}

Expand Down
3 changes: 1 addition & 2 deletions core/src/main/java/org/jruby/util/AbstractFileResource.java
Expand Up @@ -15,8 +15,7 @@ public InputStream inputStream() throws ResourceException {
}
try {
return openInputStream();
}
catch (IOException e) {
} catch (IOException e) {
throw new ResourceException.IOError(e);
}
}
Expand Down

0 comments on commit 1721b25

Please sign in to comment.