can you explain more please ? do i need to remove ?

uri = target_uri.path
uri << '/' if uri[-1,1] != '/'