Skip to content

Commit 3c8e47e

Browse files
committed
refactor(app_config): remove redundant cases
- Removed unnecessary 'none', 'admin', and 'publisher' cases. - Simplified conditional rendering logic. - Improved code readability.
1 parent 5e45dfb commit 3c8e47e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/app_configuration/view/app_configuration_page.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,10 +1006,6 @@ class _UserPreferenceLimitsFormState extends State<_UserPreferenceLimitsForm> {
10061006
),
10071007
],
10081008
);
1009-
case 'none':
1010-
case 'admin': // Assuming admin doesn't have specific limits here
1011-
case 'publisher': // Assuming publisher doesn't have specific limits here
1012-
return const SizedBox.shrink();
10131009
default:
10141010
return const SizedBox.shrink();
10151011
}
@@ -1403,10 +1399,6 @@ class _AdConfigFormState extends State<_AdConfigForm> {
14031399
),
14041400
],
14051401
);
1406-
case 'none':
1407-
case 'admin':
1408-
case 'publisher':
1409-
return const SizedBox.shrink();
14101402
default:
14111403
return const SizedBox.shrink();
14121404
}

0 commit comments

Comments
 (0)