You've already forked v8-code-style
mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2025-09-16 09:36:26 +02:00
Исправление замечаний Sonar
This commit is contained in:
@@ -96,7 +96,6 @@ public class SortJob
|
||||
if (monitor.isCanceled())
|
||||
{
|
||||
workspaceOrchestrator.cancelOperation(handler);
|
||||
return Status.CANCEL_STATUS;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -104,6 +103,10 @@ public class SortJob
|
||||
}
|
||||
}
|
||||
|
||||
if (monitor.isCanceled())
|
||||
{
|
||||
return Status.CANCEL_STATUS;
|
||||
}
|
||||
return Status.OK_STATUS;
|
||||
}
|
||||
|
||||
|
@@ -210,8 +210,8 @@ public class FunctionCtorReturnSectionCheck
|
||||
.filter(t -> McoreUtil.getTypeName(t.getSecond()).equals(returnTypeName))
|
||||
.findAny();
|
||||
|
||||
checkTypeProperties(method, statment, isRussianScript, returnType, declaredProperties.get(),
|
||||
typeProperties.get(), resultAceptor);
|
||||
checkTypeProperties(method, statment, isRussianScript, returnType,
|
||||
declaredProperties.orElse(null), typeProperties.orElse(null), resultAceptor);
|
||||
}
|
||||
}
|
||||
else if (isWarningReturnNonDeclaredType(method, returnSection, returnType, computedReturnTypes))
|
||||
|
Reference in New Issue
Block a user