chore: address code analysis warnings.