Insights code refactoring

What does this MR do and why?

While reading Insights code I find few easy code improvements. Here they are.

Screenshots or screen recordings

image

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading