- Use `hasConfig(string)` instead of `canFind(string[], string)`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-01-23 23:56:48 +02:00
parent d30ffb7684
commit 1f6e9cbbb6
1 changed files with 1 additions and 1 deletions

View File

@ -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]);
}