make proc names consistent (#18626)
* rename `endswith` to `endsWith` * rename
This commit is contained in:
parent
916d0c21af
commit
2bc07554cc
9 changed files with 13 additions and 13 deletions
|
|
@ -17,7 +17,7 @@ proc cloneUrl*(url, dest: string; cloneUsingHttps: bool): string =
|
|||
# github + https + trailing url slash causes a
|
||||
# checkout/ls-remote to fail with Repository not found
|
||||
var isGithub = false
|
||||
if modUrl.contains("github.com") and modUrl.endswith("/"):
|
||||
if modUrl.contains("github.com") and modUrl.endsWith("/"):
|
||||
modUrl = modUrl[0 .. ^2]
|
||||
isGithub = true
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ proc processIncludes(dir: string, whitelist: StringTableRef) =
|
|||
if ('.' notin name and "include" in path) or ("c++" in path):
|
||||
let n = whitelist.getOrDefault(name)
|
||||
if n != "processed": whitelist[name] = "found"
|
||||
if name.endswith(".h"):
|
||||
if name.endsWith(".h"):
|
||||
let n = whitelist.getOrDefault(name)
|
||||
if n == "found": includes(path, name, whitelist)
|
||||
of pcDir: processIncludes(path, whitelist)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue