Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos committed Mar 12, 2024
1 parent 7cd840b commit add87b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/admin/actions/moderate_package.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ Set the moderated flag on a package (updating the flag and the timestamp).
break;
}

var p = await packageBackend.lookupPackage(package!);
final p = await packageBackend.lookupPackage(package!);
if (p == null) {
throw NotFoundException.resource(package);
}

Package? p2;
if (valueToSet != null) {
p2 = await withRetryTransaction(dbService, (tx) async {
final pkg = await tx.lookupValue<Package>(p!.key);
final pkg = await tx.lookupValue<Package>(p.key);
pkg.updateIsModerated(isModerated: valueToSet!);
tx.insert(pkg);
return pkg;
Expand Down

0 comments on commit add87b9

Please sign in to comment.