Light travels in a straight line (rectilinear propagation of light). This statement does hold if the medium of travel for light is homogeneous and transparent. Light follows a curved path in inhomogeneous medium because such a medium shows continuous variation of its properties.