mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_Scripting: generator: remove unneeded else in nullable returns
This commit is contained in:
parent
181a5900df
commit
32d6919ae2
@ -1704,9 +1704,8 @@ void emit_userdata_method(const struct userdata *data, const struct method *meth
|
||||
arg = method->arguments;
|
||||
return_count = emit_references(arg," ");
|
||||
fprintf(source, " return %d;\n", return_count);
|
||||
fprintf(source, " } else {\n");
|
||||
fprintf(source, " return 0;\n");
|
||||
fprintf(source, " }\n");
|
||||
fprintf(source, " return 0;\n");
|
||||
} else {
|
||||
fprintf(source, " lua_pushboolean(L, data);\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user