If you're doing a UV-Vis expt, Beer's Law specifies a linear relationship, so you should be fitting to a line. Unless you are in a range where Beer's Law breaks down, in which case you should be fitting to something else. If you're doing a concentration curve, you should be in the linear range, and should be fitting accordingly, although some instrument software allows you to incorporate curvature into a fit.