Skip to content

Commit

Permalink
remove unused return type
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaileychess committed Dec 3, 2021
1 parent 7bf4029 commit dee8216
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bfbs_gen_lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class LuaBfbsGenerator : public BaseBfbsGenerator {
// Create all the field accessors.
ForAllFields(object, /*reverse=*/false, [&](const r::Field *field) {
// Skip writing deprecated fields altogether.
if (field->deprecated()) { return true; }
if (field->deprecated()) { return; }

const std::string field_name = NormalizeName(field->name());
const std::string field_name_camel_case = MakeCamelCase(field_name);
Expand Down Expand Up @@ -215,7 +215,7 @@ class LuaBfbsGenerator : public BaseBfbsGenerator {
if (!field_object) {
// TODO(derekbailey): this is an error condition. we
// should report it better.
return false;
return;
}
code += " local x = " +
std::string(
Expand Down Expand Up @@ -317,11 +317,11 @@ class LuaBfbsGenerator : public BaseBfbsGenerator {
break;
}
default: {
return false;
return;
}
}
}
return true;
return;
});

// Create all the builders
Expand Down

0 comments on commit dee8216

Please sign in to comment.