Fix off-by-one error

[spring-boot] Endpoints: add ready state checking timeout
This commit is contained in:
Valentina Kiryushkina
2017-05-15 14:37:57 +03:00
parent 0ab6f65d37
commit dc8fbfcece
@@ -114,7 +114,7 @@ public class PyStringFormatInspection extends PyInspection {
final PyType rightType = myTypeEvalContext.getType(rightExpression);
if (rightType instanceof PyTupleType) {
final PyTupleType tupleType = (PyTupleType)rightType;
for (int i = 0; i <= tupleType.getElementCount(); i += 1) {
for (int i = 0; i < tupleType.getElementCount(); i++) {
final PyType elementType = tupleType.getElementType(i);
if (elementType != null) {
final String typeName = myFormatSpec.get(String.valueOf(i + 1));