V3107. Identical expression to the left and to the right of compound assignment.
V3107 Identical expression 'index' to the left and to the right of compound assignment. CommandStringToken.cs 80
internal static CommandStringToken Parse(....,
ref int index,
....)
{
....
var ret = new CommandStringToken(....);
index += end - index;
return ret;
}
V3107 Identical expression 'power' to the left and to the right of compound assignment. RelayComponent.cs 150
public override void ReceivePowerProbeSignal(Connection connection,
Item source, float power)
{
....
if (power < 0.0f)
{
....
}
else
{
if (connection.IsOutput || powerOut == null) { return; }
if (currPowerConsumption - power < -MaxPower)
{
power += MaxPower + (currPowerConsumption - power);
}
}
}