Tested on Divi 3.0 which removes the vertical line in post/page with sidebar.

Simple paste the code below in your child theme stylesheet, or divi custom css.

 

#main-content .container:before {
    display: none;
}