Skip to content

refactor: simplify array initialization#128

Merged
StuartFerguson merged 2 commits intomainfrom
deepsource-autofix-838a477a
Sep 18, 2025
Merged

refactor: simplify array initialization#128
StuartFerguson merged 2 commits intomainfrom
deepsource-autofix-838a477a

Conversation

@deepsource-autofix
Copy link
Copy Markdown
Contributor

This PR refactors array initializations by replacing explicit type declarations with implicit type inference (new[]) to reduce verbosity and improve readability.

  • Explicit mention of array type and/or size is redundant when array is initialized: DeepSource flagged instances where arrays were initialized with an explicit type (e.g., new string[]), which is unnecessary when the compiler can infer the element type. We replaced those with new[] in both the featureTags field and the tags parameter, streamlining the code and enhancing clarity.

This Autofix was generated by AI. Please review the change before merging.

This PR refactors array initializations by replacing explicit type declarations with implicit type inference (`new[]`) to reduce verbosity and improve readability.

- Explicit mention of array type and/or size is redundant when array is initialized: DeepSource flagged instances where arrays were initialized with an explicit type (e.g., `new string[]`), which is unnecessary when the compiler can infer the element type. We replaced those with `new[]` in both the `featureTags` field and the `tags` parameter, streamlining the code and enhancing clarity.

> This Autofix was generated by AI. Please review the change before merging.
@deepsource-io
Copy link
Copy Markdown

deepsource-io Bot commented Sep 18, 2025

Here's the code health analysis summary for commits 0028a08..0c507b7. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource C# LogoC#✅ Success
🎯 1 occurence resolved
View Check ↗
DeepSource Docker LogoDocker✅ SuccessView Check ↗
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗
DeepSource SQL LogoSQL✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@StuartFerguson StuartFerguson merged commit 5b5c127 into main Sep 18, 2025
11 checks passed
@github-actions github-actions Bot deleted the deepsource-autofix-838a477a branch November 18, 2025 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant