mirror of https://github.com/tbklang/tlang.git
Compiler
- Use `hasConfig(string)` instead of `canFind(string[], string)`
This commit is contained in:
parent
d30ffb7684
commit
1f6e9cbbb6
|
@ -51,7 +51,7 @@ public class CompilerConfiguration
|
|||
public VType getConfig(VType)(string key)
|
||||
{
|
||||
import std.algorithm : canFind;
|
||||
if(canFind(config.keys(), key))
|
||||
if(hasConfig(key))
|
||||
{
|
||||
return to!(VType)(config[key]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue