Skip to content

Commit 3ee7311

Browse files
committed
replace any with auto, refs #59
1 parent 4d81ebb commit 3ee7311

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/telebot/private/utils.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ template hasCommand*(update: Update, username: string): bool =
5353
result = false
5454
result
5555

56-
proc isSet*(value: any): bool {.inline.} =
56+
proc isSet*(value: auto): bool {.inline.} =
5757
when value is string:
5858
result = value.len > 0
5959
elif value is int:
@@ -223,7 +223,7 @@ proc newProcDef(name: string): NimNode {.compileTime.} =
223223
newStmtList()
224224
)
225225

226-
proc addData*(p: var MultipartData, name: string, content: any, fileCheck = false) {.inline.} =
226+
proc addData*(p: var MultipartData, name: string, content: auto, fileCheck = false) {.inline.} =
227227
when content is string:
228228
if fileCheck and content.startsWith("file://"):
229229
p.addFiles({name: content[7..content.len-1]})

0 commit comments

Comments
 (0)