Skip to content

Commit

Permalink
fix for style checks
Browse files Browse the repository at this point in the history
  • Loading branch information
krux02 committed Aug 11, 2019
1 parent 3bf3290 commit 460e1f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/macros.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ macro hasCustomPragma*(n: typed, cp: typed{nkSym}): bool =
of nnkTypeOfExpr:
var typeSym = n.getTypeInst
# dealing with shitty typedesc that sneasks into everything
while typeSym.kind == nnkBracketEXpr and typeSym[0].eqIdent "typeDesc":
while typeSym.kind == nnkBracketExpr and typeSym[0].eqIdent "typeDesc":
typeSym = typeSym[1]
case typeSym.kind:
of nnkSym:
Expand Down Expand Up @@ -1631,7 +1631,7 @@ macro getCustomPragmaVal*(n: typed, cp: typed{nkSym}): untyped =
else:
var typeSym = n.getTypeInst
# dealing with shitty typedesc that sneasks into everything
while typeSym.kind == nnkBracketEXpr and typeSym[0].eqIdent "typeDesc":
while typeSym.kind == nnkBracketExpr and typeSym[0].eqIdent "typeDesc":
typeSym = typeSym[1]
case typeSym.kind:
of nnkSym:
Expand Down

0 comments on commit 460e1f1

Please sign in to comment.