Skip to content

Commit

Permalink
ci: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
simonoppowa committed Jan 11, 2025
1 parent aed804c commit c725ec8
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 19 deletions.
4 changes: 1 addition & 3 deletions lib/core/data/dbo/app_theme_dbo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ enum AppThemeDBO {
case AppThemeEntity.system:
dbo = AppThemeDBO.system;
break;
default:
return AppThemeDBO.system;
}
}
return dbo;
}
}
4 changes: 1 addition & 3 deletions lib/core/domain/entity/app_theme_entity.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ enum AppThemeEntity {
case AppThemeDBO.system:
entity = AppThemeEntity.system;
break;
default:
return AppThemeEntity.system;
}
}
return entity;
}

Expand Down
4 changes: 1 addition & 3 deletions lib/features/add_meal/data/dto/fdc_sp/sp_const.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ class SPConst {
return fdcFoodDescriptionEn;
case SupportedLanguage.de:
return fdcFoodDescriptionDe;
default:
return fdcFoodDescriptionEn;
}
}
}

}
4 changes: 1 addition & 3 deletions lib/features/add_meal/data/dto/fdc_sp/sp_fdc_food_dto.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ class SpFdcFoodDTO {
return descriptionEn;
case SupportedLanguage.de:
return descriptionDe;
default:
return descriptionEn;
}
}
}

get servingSize => portions
Expand Down
4 changes: 1 addition & 3 deletions lib/features/add_meal/data/dto/off/off_product_dto.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ class OFFProductDTO {
case SupportedLanguage.de:
localeName = product_name_de;
break;
default:
return product_name_en;
}
}

// If local language is not available, return available language
if (localeName == null || localeName.isEmpty) {
Expand Down
4 changes: 0 additions & 4 deletions lib/features/edit_meal/presentation/edit_meal_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,6 @@ class _EditMealScreenState extends State<EditMealScreen> {
? _convertToMetric(
_mealQuantityTextController.text, _mealEntity.mealUnit ?? "0")
: _mealQuantityTextController.text;
final servingQuantity = usesImperialUnits
? _convertToMetric(
_servingQuantityTextController.text, _mealEntity.mealUnit ?? "0")
: _servingQuantityTextController.text;

final newMealEntity = _editMealBloc.createNewMealEntity(
_mealEntity,
Expand Down

0 comments on commit c725ec8

Please sign in to comment.