github.com/xmplusdev/xray-core@v1.8.10/common/singbridge/error.go (about)

     1  package singbridge
     2  
     3  import E "github.com/sagernet/sing/common/exceptions"
     4  
     5  func ReturnError(err error) error {
     6  	if E.IsClosedOrCanceled(err) {
     7  		return nil
     8  	}
     9  	return err
    10  }