...
This commit is contained in:
@@ -37,8 +37,7 @@ pub fn get(args FactoryArgs) !&Site {
|
||||
|
||||
pub fn exists(args FactoryArgs) bool {
|
||||
name := texttools.name_fix(args.name)
|
||||
mut sc := sites_global[name] or { return false }
|
||||
return true
|
||||
return name in sites_global
|
||||
}
|
||||
|
||||
pub fn default() !&Site {
|
||||
|
||||
Reference in New Issue
Block a user