...
This commit is contained in:
@@ -43,9 +43,9 @@ pub mut:
|
||||
//your checking & initialization code if needed
|
||||
fn obj_init(mycfg_ ${args.classname})!${args.classname}{
|
||||
mut mycfg:=mycfg_
|
||||
if mycfg.password == '' && mycfg.secret == '' {
|
||||
return error('password or secret needs to be filled in for ??{mycfg.name}')
|
||||
}
|
||||
//if mycfg.password == '' && mycfg.secret == '' {
|
||||
// return error('password or secret needs to be filled in for ??{mycfg.name}')
|
||||
//}
|
||||
return mycfg
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user