We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 272abb7 commit 9369baeCopy full SHA for 9369bae
dsc_lib/src/functions/create_object.rs
@@ -35,7 +35,7 @@ impl Function for CreateObject {
35
fn invoke(&self, args: &[Value], _context: &Context) -> Result<Value, DscError> {
36
debug!("{}", t!("functions.createObject.invoked"));
37
38
- if args.len() % 2 != 0 {
+ if !args.len().is_multiple_of(2) {
39
return Err(DscError::Parser(t!("functions.createObject.argsMustBePairs").to_string()));
40
}
41
0 commit comments