optimize: remove lint found by megacheck

This commit is contained in:
Vladimir Chalupecky
2017-06-01 22:07:40 +02:00
parent 219e585fd1
commit 49d4aa112a
4 changed files with 3 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ func copyLocation(dst, src *Location) {
func checkOptimization(p Problem, dim int, method Needser, recorder Recorder) error {
if p.Func == nil {
panic("optimize: objective function is undefined")
panic(badProblem)
}
if dim <= 0 {
panic("optimize: impossible problem dimension")