diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 46e4ace..f4639a4 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -23,7 +23,7 @@ jobs: runs-on: buildjet-2vcpu-ubuntu-2204 strategy: matrix: - nim: ["1.6.x", "2.0.x", "2.2.x", "devel"] + nim: ["2.0.x", "2.2.x", "devel"] steps: - name: Checkout Code uses: actions/checkout@v4 diff --git a/nitter.nimble b/nitter.nimble index 37f9229..7ff8196 100644 --- a/nitter.nimble +++ b/nitter.nimble @@ -10,7 +10,7 @@ bin = @["nitter"] # Dependencies -requires "nim >= 1.6.10" +requires "nim >= 2.0.0" requires "jester#baca3f" requires "karax#5cf360c" requires "sass#7dfdd03" diff --git a/src/parserutils.nim b/src/parserutils.nim index f40082c..72c50e1 100644 --- a/src/parserutils.nim +++ b/src/parserutils.nim @@ -50,8 +50,7 @@ template with*(ident, value, body): untyped = template with*(ident; value: JsonNode; body): untyped = if true: let ident {.inject.} = value - # value.notNull causes a compilation error for versions < 1.6.14 - if notNull(value): body + if value.notNull: body template getCursor*(js: JsonNode): string = js{"content", "operation", "cursor", "value"}.getStr