Skip to content

Commit

Permalink
Update JpaTicketRegistry.java
Browse files Browse the repository at this point in the history
check checkstyle
  • Loading branch information
hyoungA committed Aug 28, 2018
1 parent b6115bc commit d05055d
Showing 1 changed file with 3 additions and 5 deletions.
Expand Up @@ -108,10 +108,9 @@ public Ticket getTicket(final String ticketId) {
* @return the int
*/
protected Ticket getTicket(final String ticketId, final boolean getIfExpired) {
if(!getIfExpired) {
if (!getIfExpired) {
return getTicket(ticketId);
}
else {
} else {
try {
val tkt = ticketCatalog.find(ticketId);
val sql = String.format("select t from %s t where t.id = :id", getTicketEntityName(tkt));
Expand Down Expand Up @@ -205,8 +204,7 @@ public int deleteTicket(final String ticketId) {
if (deleteSingleTicket(ticketId)) {
count.incrementAndGet();
}
}
catch (Exception e) {
} catch (final Exception e) {
LOGGER.error("Error deleting ticket [{}] from registry.", ticketId, e);
}

Expand Down

0 comments on commit d05055d

Please sign in to comment.