mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-26 15:46:31 +00:00
* WriterPoolProcessor.java
eliminate nonsensical type check
This commit is contained in:
@@ -425,12 +425,7 @@ implements Lifecycle, Checkpointable, WriterPoolSettings {
|
||||
@Override
|
||||
protected abstract ProcessResult innerProcessResult(CrawlURI uri);
|
||||
|
||||
protected boolean shouldProcess(CrawlURI uri) {
|
||||
if (!(uri instanceof CrawlURI)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
CrawlURI curi = (CrawlURI)uri;
|
||||
protected boolean shouldProcess(CrawlURI curi) {
|
||||
// If failure, or we haven't fetched the resource yet, return
|
||||
if (curi.getFetchStatus() <= 0) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user