Ok, I agree. It would not harm here anyway. But the if self.kernel != 'linear' should still be there.