Skip to content

chore: Remove no longer needed null check & nested with - #876

Merged
LouisCAD merged 1 commit into
mainfrom
minor-cleanup
Oct 22, 2026
Merged

LouisCAD merged 1 commit into
mainfrom
minor-cleanup

Conversation

@LouisCAD

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI balanced review requested due to automatic review settings October 22, 2026 13:02
@LouisCAD
LouisCAD enabled auto-merge October 22, 2026 13:03
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The small refactor preserves existing behavior, matches the configured non-null response-body API, and has no unresolved findings.

No open issues 🎉

What changed in this PR

Simplifies the networking module’s gzip interceptor without changing its decompression behavior.

Changes:

  • Removes the redundant response-body null check and non-null assertion.
  • Replaces the conditional with when and removes the nested with block.
File Description
Network/​src/​main/​kotlin/​com/​infomaniak/​core/​network/​networking/​GZipInterceptor.kt Simplifies gzip handling with direct response-body access.

Review effort: Balanced

@LouisCAD
LouisCAD merged commit 7b55424 into main Oct 22, 2026
11 checks passed
@LouisCAD
LouisCAD deleted the minor-cleanup branch October 22, 2026 13:22
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.

3 participants