Skip to content

Commit f8c3618

Browse files
committed
simplify
1 parent 632e35b commit f8c3618

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/net/imglib2/algorithm/blocks/BlockSupplier.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,7 @@ default < U extends NativeType< U > > BlockSupplier< U > andThen( UnaryBlockOper
153153

154154
default < U extends NativeType< U > > BlockSupplier< U > andThen( Function< BlockSupplier< T >, UnaryBlockOperator< T, U > > function )
155155
{
156-
final UnaryBlockOperator< T, U > op = function.apply( this );
157-
if ( op instanceof NoOpUnaryBlockOperator )
158-
return Cast.unchecked( this );
159-
else
160-
return new ConcatenatedBlockSupplier<>( this.independentCopy(), op );
156+
return andThen( function.apply( this ) );
161157
}
162158

163159
/**

0 commit comments

Comments
 (0)