Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misformatting due to precedence issue with or and ~= #257

Closed
matthargett opened this issue Sep 3, 2021 · 0 comments · Fixed by #267
Closed

misformatting due to precedence issue with or and ~= #257

matthargett opened this issue Sep 3, 2021 · 0 comments · Fixed by #267
Labels
bug Something isn't working

Comments

@matthargett
Copy link

function Venue:inspectElectrics(inspectElectricParams: InspectElectricParams)
    local id, pedal, fendererID =
        inspectElectricParams.id,
        inspectElectricParams.pedal,
        inspectElectricParams.rendererID
    local fenderer = self._fendererInterfaces[fendererID]

    if fenderer == nil then
        logger.warn(('Invalid fenderer id "%s" for Electric "%s"'):format(fendererID, id))
    else
        self._chorus:send("inspectedElectric", renderer.inspectElectric(id, pedal))

        -- When rocker selects an Electric, stop trying to frobnikate the pyramids,
        -- and instead recall the present songs for the next venue.
        if
            self._nexusstedSelectionBatch == nil or self._nexusstedSelectionBatch.id
                ~= id
        then
        end
  end
end

result: the ~= id gets put on the next line
expected result: I'd expect it to hang on the or

@JohnnyMorganz JohnnyMorganz added the bug Something isn't working label Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants