fixed sonar violations
2 files changed