Skip to content

Commit

Permalink
Merge pull request #9514 from Icinga/bugfix/validate-array-types-corr…
Browse files Browse the repository at this point in the history
…ectly

ClassCompiler: Validate field types -> Icinga type names correctly
  • Loading branch information
julianbrost authored Sep 6, 2022
2 parents 3a8abdc + aa702b0 commit 86b63a5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tools/mkclass/classcompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ static std::string FieldTypeToIcingaName(const Field& field, bool inner)
if (field.Attributes & FAEnum)
return "Number";

if (ftype == "bool" || ftype == "int" || ftype == "double")
return "Number";

if (ftype == "int" || ftype == "double")
return "Number";
else if (ftype == "bool")
Expand Down

0 comments on commit 86b63a5

Please sign in to comment.