Merge "CherryPick: Inline usage of ReviewDb to avoid resource warning"
This commit is contained in:
commit
0f839a42f8
@ -66,9 +66,7 @@ public class CherryPick
|
||||
throw new BadRequestException("destination must be non-empty");
|
||||
}
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
ReviewDb db = dbProvider.get();
|
||||
if (!control.isVisible(db)) {
|
||||
if (!control.isVisible(dbProvider.get())) {
|
||||
throw new AuthException("Cherry pick not permitted");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user