Skip to content

Conversation

@leok18
Copy link
Contributor

@leok18 leok18 commented Nov 5, 2025

No description provided.

@leok18 leok18 requested a review from MangoSwirl November 5, 2025 04:30
Copy link
Member

@MangoSwirl MangoSwirl left a comment

Choose a reason for hiding this comment

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

Looks good, just a quick style nitpick if you feel like it

Comment on lines 204 to 221
return prefs == null || int.tryParse(widget.team) == null
? Container()
: NetworkFlag(
team: int.parse(widget.team),
flag: FlagConfiguration.fromJson(
jsonDecode(
prefs!.getString('team_lookup_flag')!,
),
),
);
: prefs!.getString('team_lookup_flag') == null
? Container()
: NetworkFlag(
team: int.parse(widget.team),
flag: FlagConfiguration.fromJson(
jsonDecode(
prefs!.getString('team_lookup_flag')!,
),
),
);
Copy link
Member

Choose a reason for hiding this comment

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

It's best to avoid nested ternaries, an if statement would be much more readable here

@leok18 leok18 merged commit ab26a80 into master Nov 6, 2025
1 of 2 checks passed
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