mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix off-by-one error
[spring-boot] Endpoints: add ready state checking timeout
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user