Skip to content

Commit

Permalink
Parameterized goals #115 rfct
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Jan 19, 2023
1 parent 103bfc8 commit decc304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions makesure.awk
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function handleGoal() {
}

function registerGoal(goalName, priv) {
if (length(goalName) == 0)
if (goalName == "")
addError("Goal must have a name")
if (goalName in GoalsByName)
addError("Goal " quote2(goalName,1) " is already defined")
Expand Down Expand Up @@ -409,7 +409,7 @@ body,goalBody,goalBodies,resolvedGoals,exitCode, t0,t1,t2, goalTimed, list) {

body = trim(Code[goalName])

emptyGoals[goalName] = length(body) == 0
emptyGoals[goalName] = body == ""

goalBody[0] = ""
addLine(goalBody, preludeCode)
Expand Down

0 comments on commit decc304

Please sign in to comment.