Skip to content

Commit

Permalink
code rabbit comments resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
naveenr-egov committed Dec 19, 2024
1 parent 7ed52ed commit 3dc4031
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,12 @@ class LocalizationLocalRepository {

return result.map((row) {
final data = row.readTableOrNull(sql.localization);
if (data == null) {
throw StateError('No data found for localization');
}

return Localization()
..code = data!.code
..code = data.code
..locale = data.locale
..module = data.module
..message = data.message;
Expand All @@ -93,8 +96,13 @@ class LocalizationLocalRepository {

return results.map((e) {
final data = e.readTableOrNull(sql.localization);

if (data == null) {
throw StateError('No data found for localization');
}

return Localization()
..code = data!.code
..code = data.code
..locale = data.locale
..module = data.module
..message = data.message;
Expand Down

0 comments on commit 3dc4031

Please sign in to comment.