Skip to content

Commit f8c0305

Browse files
committed
Simplify ifs
1 parent e915bb6 commit f8c0305

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DDRec/src/Surface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ namespace dd4hep {
617617

618618
const IMaterial& mat = _volSurf.innerMaterial() ;
619619

620-
if( ! ( mat.Z() > 0 ) ) {
620+
if( mat.Z() <= 0 ) {
621621

622622
MaterialManager matMgr( _det.placement().volume() ) ;
623623

@@ -636,7 +636,7 @@ namespace dd4hep {
636636

637637
const IMaterial& mat = _volSurf.outerMaterial() ;
638638

639-
if( ! ( mat.Z() > 0 ) ) {
639+
if( mat.Z() <= 0 ) {
640640

641641
MaterialManager matMgr( _det.placement().volume() ) ;
642642

0 commit comments

Comments
 (0)