Committed by
GitHub
get_instance.dart redundant ternary
The ternary on the line ~222 it is a redundant ternary. Another possibility would be if the key is not null print it, instead of $ newKey
Showing
1 changed file
with
1 additions
and
5 deletions
| @@ -227,11 +227,7 @@ class GetInstance { | @@ -227,11 +227,7 @@ class GetInstance { | ||
| 227 | 227 | ||
| 228 | FcBuilder builder = GetConfig._singl[newKey] as FcBuilder; | 228 | FcBuilder builder = GetConfig._singl[newKey] as FcBuilder; |
| 229 | if (builder.permanent) { | 229 | if (builder.permanent) { |
| 230 | - (key == null) | ||
| 231 | - ? print( | ||
| 232 | - '[GET] [$newKey] has been marked as permanent, SmartManagement is not authorized to delete it.') | ||
| 233 | - : print( | ||
| 234 | - '[GET] [$newKey] has been marked as permanent, SmartManagement is not authorized to delete it.'); | 230 | + print('[GET] [$newKey] has been marked as permanent, SmartManagement is not authorized to delete it.'); |
| 235 | return false; | 231 | return false; |
| 236 | } | 232 | } |
| 237 | final i = builder.dependency; | 233 | final i = builder.dependency; |
-
Please register or login to post a comment