remove redundant code in is_active_trail function
remove redundant code in is_active_trail function

jhonatanoliveira/pgmpy,ankurankan/pgmpy,kislayabhi/pgmpy,vivek425ster/pgmpy,khalibartan/pgmpy,sandeepkrjha/pgmpy,vivek425ster/pgmpy,liquidmetal/pgmpy,abinashpanda/pgmpy,ankurankan/pgmpy,pgmpy/pgmpy,pgmpy/pgmpy,khalibartan/pgmpy,palashahuja/pgmpy,liquidmetal/pgmpy,pratyakshs/pgmpy,sandeepkrjha/pgmpy,jhonatanoliveira/pgmpy,kislayabhi/pgmpy,anaviltripathi/pgmpy,kris-singh/pgmpy,kris-singh/pgmpy,pratyakshs/pgmpy,palashahuja/pgmpy,yashu-seth/pgmpy,abinashpanda/pgmpy,yashu-seth/pgmpy,anaviltripathi/pgmpy