mirror of
https://github.com/gonum/gonum.git
synced 2025-10-05 15:16:59 +08:00
optimize: remove lint found by megacheck
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user