-
Notifications
You must be signed in to change notification settings - Fork 1.7k
suite.Run: refactor handling of stats for improved readability #1764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+12
−13
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@renzoarreaza Could you review this change? I'm asking you as you recently had a look at |
888850d
to
fc6b3ea
Compare
Looks good! |
ccoVeille
approved these changes
Jun 16, 2025
Refactor handling of stats in suite.Run with the goal of reducing indented blocks to improve readability. To achieve this, the SuiteInformation methods now handle being called with a nil receiver to work as noop. This allows to call them from suite.Run without nil checks blocks, so with improved readability.
fc6b3ea
to
87101a6
Compare
apricote
pushed a commit
to hetznercloud/fleeting-plugin-hetzner
that referenced
this pull request
Aug 27, 2025
Summary
Refactor handling of stats in
suite.Run
with the goal of reducing indented blocks to improve readability.Changes
The
SuiteInformation
methods now handle being called with a nil receiver to work as no-op. This allows to call them fromsuite.Run
without nil checks blocks, so with improved readability thanks to the removal of indented blocks.Motivation
Improve readability of
suite.Run
.Related issues
N/A