TW0006 falsch positiv
Closed this issue · 0 comments
neolithos commented
// prepare stmt
// check arguments if guid exists -> create a merge
if (args.GetValue("Guid") != null)
{
cmd = Procs.CreateLuaTable(
new PropertyValue("upsert", "dbo.Objk"),
new PropertyValue("on",
Procs.CreateLuaArray("Guid"))
);
cmd.SetArrayValue(1, args);
}
// check if id exists -> create a update
else if (args.GetValue("Id") != null)
{
cmd = Procs.CreateLuaTable(new
PropertyValue("update", "dbo.Objk"));
cmd.SetArrayValue(1, args);
}
// none of both exists -> create a insert
else
{
cmd = Procs.CreateLuaTable(new
PropertyValue("insert", "dbo.Objk"));
cmd.SetArrayValue(1, args);
}
Definition sollte so sein:
if (var == constant)
else if (var == constant)