Skip to content

Commit

Permalink
hotfix mounting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethosa committed Aug 23, 2023
1 parent 28907dd commit 9ce225f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/happyx/routing/mounting.nim
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ proc findAndReplaceMount*(body: NimNode) {. compileTime .} =
var offset = 0
for i in 0..<body.len:
let idx = i+offset
if body[idx].kind == nnkCommand and body[idx] == ident"mount":
if body[idx][1].kind == nnkInfix and body[idx][1] == ident"->":
if body[idx].kind == nnkCommand and body[idx][0] == ident"mount":
if body[idx][1].kind == nnkInfix and body[idx][1][0] == ident"->":
# handle mount
let
name = body[idx][1][2]
Expand Down

0 comments on commit 9ce225f

Please sign in to comment.