Skip to content

Commit

Permalink
Fixing coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Dante291 committed Nov 27, 2023
1 parent 37137a7 commit 814db90
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions lib/plugins/talawa_plugin_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,15 @@ class TalawaPluginProvider extends StatelessWidget {
(box.get('plugins') as List<Map<String, dynamic>>?) ?? [];

///mapping over the list from the server
pluginList
.map(
(plugin) => {
if (plugin["pluginName"] == pluginName)
{
if (plugin["pluginInstallStatus"] as bool)
{
res = plugin["pluginInstallStatus"] as bool ||
(plugin["installedOrgs"] as List)
.contains(userConfig.currentOrg.id),
},
},
},
)
.toList();
pluginList.forEach((plugin) {
if (plugin["pluginName"] == pluginName) {
if (plugin["pluginInstallStatus"] as bool) {
res = plugin["pluginInstallStatus"] as bool ||
(plugin["installedOrgs"] as List)
.contains(userConfig.currentOrg.id);

Check warning on line 46 in lib/plugins/talawa_plugin_provider.dart

View check run for this annotation

Codecov / codecov/patch

lib/plugins/talawa_plugin_provider.dart#L45-L46

Added lines #L45 - L46 were not covered by tests
}
}
});
return res;
}

Expand Down

0 comments on commit 814db90

Please sign in to comment.