fn end_session(session_index: SessionIndex) {
        if let Some(active_era) = Self::active_era() {
            if let Some(next_active_era_start_session_index) =
                Self::eras_start_session_index(active_era.index + 1)
            {
                if next_active_era_start_session_index == session_index + 1 {
                    Self::end_era(active_era, session_index);
                }
            }
        }
    }
/// End a session potentially ending an era.
End a session potentially ending an era.
End a session potentially ending an era .
fn end_session(session_index: SessionIndex) {
        if let Some(active_era) = Self::active_era() {
            if let Some(next_active_era_start_session_index) =
                Self::eras_start_session_index(active_era.index + 1)
            {
                if next_active_era_start_session_index == session_index + 1 {
                    Self::end_era(active_era, session_index);
                }
            }
        }
    }
fn end_session ( session_index : SessionIndex ) { if let Some ( active_era ) = Self :: active_era ( ) { if let Some ( next_active_era_start_session_index ) = Self :: eras_start_session_index ( active_era . index + 1 ) { if next_active_era_start_session_index == session_index + 1 { Self :: end_era ( active_era , session_index ) ; } } } }
End a session potentially ending an era.
End a session potentially ending an era .
session_index
SessionIndex