ChangeIndexer: Remove dead executor == null cases
The executor is always populated to a non-null value, since it's an @Assisted argument that is not @Nullable. Change-Id: Ic61a73a0fd81ab3cd14ab7837c091787ced4de76
This commit is contained in:
		@@ -153,9 +153,7 @@ public class ChangeIndexer {
 | 
				
			|||||||
   */
 | 
					   */
 | 
				
			||||||
  public CheckedFuture<?, IOException> indexAsync(Project.NameKey project,
 | 
					  public CheckedFuture<?, IOException> indexAsync(Project.NameKey project,
 | 
				
			||||||
      Change.Id id) {
 | 
					      Change.Id id) {
 | 
				
			||||||
    return executor != null
 | 
					    return submit(new IndexTask(project, id));
 | 
				
			||||||
        ? submit(new IndexTask(project, id))
 | 
					 | 
				
			||||||
        : Futures.<Object, IOException> immediateCheckedFuture(null);
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /**
 | 
					  /**
 | 
				
			||||||
@@ -235,9 +233,7 @@ public class ChangeIndexer {
 | 
				
			|||||||
   * @return future for the deleting task.
 | 
					   * @return future for the deleting task.
 | 
				
			||||||
   */
 | 
					   */
 | 
				
			||||||
  public CheckedFuture<?, IOException> deleteAsync(Change.Id id) {
 | 
					  public CheckedFuture<?, IOException> deleteAsync(Change.Id id) {
 | 
				
			||||||
    return executor != null
 | 
					    return submit(new DeleteTask(id));
 | 
				
			||||||
        ? submit(new DeleteTask(id))
 | 
					 | 
				
			||||||
        : Futures.<Object, IOException> immediateCheckedFuture(null);
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /**
 | 
					  /**
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user