Skip to content

Commit 76309fb

Browse files
authored
fix certain version checks (#352)
1 parent f312b91 commit 76309fb

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

nimforum.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ requires "karax#45bac6b"
2424

2525
requires "webdriver#c5e4182"
2626

27-
when NimMajor >= 1 and NimMinor >= 9:
27+
when NimMajor > 1:
2828
requires "db_connector >= 0.1.0"
2929
requires "smtp >= 0.1.0"
3030

src/forum.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import std/options
1616

1717
import auth, email, utils, buildcss
1818

19-
when NimMajor >= 1 and NimMinor >= 9:
19+
when NimMajor > 1:
2020
import db_connector/db_sqlite
2121
else:
2222
import std/db_sqlite

src/importer.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import strutils
2-
when NimMajor >= 1 and NimMinor >= 9:
2+
when NimMajor > 1:
33
import db_connector/db_sqlite
44
else:
55
import std/db_sqlite
@@ -67,4 +67,4 @@ block:
6767
p
6868
)
6969

70-
echo("Imported!")
70+
echo("Imported!")

src/setup_nimforum.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import strutils, os, times, json, options, terminal
1111

12-
when NimMajor >= 1 and NimMinor >= 9:
12+
when NimMajor > 1:
1313
import db_connector/db_sqlite
1414
else:
1515
import std/db_sqlite

0 commit comments

Comments
 (0)