Skip to content

Commit

Permalink
Fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadido3 committed Apr 22, 2024
1 parent 03f4bcf commit 14b5427
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
21 changes: 13 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
{
"cSpell.words": [
"Affero",
"Chol",
"Nelder",
"Residualer",
"Tweaker",
"Unmap",
"Unprojected",
"Vogel",
"aovY",
"Chol",
"Converger",
"devserver",
"gonum",
"ldflags",
"mathgl",
"middlepoint",
"Nelder",
"objs",
"peaceiris",
"Residualer",
"semver",
"shortid",
"tagname",
"teris",
"tweakable",
"tweakables",
"Tweaker",
"Unmap",
"unproject",
"Unprojected",
"urlpathprefix",
"vgform",
"vgrouter",
"Vogel",
"vugu",
"vugugen"
"vugugen",
"zoomable"
],
"go.toolsEnvVars": {
"GOOS": "js",
Expand Down
2 changes: 1 addition & 1 deletion optimizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func Optimize(site *Site, stopFunc func() bool) error {
if len(tweakables) == 0 {
return fmt.Errorf("there are no tweakable variables")
}
if len(tweakables) == 0 {
if len(residuals) == 0 {
return fmt.Errorf("there are no residuals to be determined")
}

Expand Down

0 comments on commit 14b5427

Please sign in to comment.