This commit is contained in:
2025-10-21 08:51:27 +02:00
parent f69078a42e
commit a5f8074411
3 changed files with 8 additions and 6 deletions

View File

@@ -25,9 +25,9 @@ pub mut:
// your checking & initialization code if needed
fn obj_init(mycfg_ ERPNext) !ERPNext {
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
}