Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
phlppchrtn committed Jun 3, 2024
1 parent 9eb6122 commit 19a808e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,10 @@ public String getMessage(final LocaleMessageKey messageKey, final Locale locale)
/** {@inheritDoc} */
@Override
public ZoneId getCurrentZoneId() {
if (zoneSupplier != null && zoneSupplier.get() != null) {
return zoneSupplier.get();
}
//If there is no user, we can pick the default zone.
return defaultZoneId;
return (zoneSupplier != null && zoneSupplier.get() != null)
? zoneSupplier.get()
//If there is no user, we can pick the default zone.
: defaultZoneId;
}

/** {@inheritDoc} */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public VUserException(final LocaleMessageText messageText) {
* @param params list of params (optional)
*/
public VUserException(final String defaultMsg, final Serializable... params) {
this((LocaleMessageText.of(defaultMsg, params)));
this(LocaleMessageText.of(defaultMsg, params));
}

/**
Expand All @@ -60,7 +60,7 @@ public VUserException(final String defaultMsg, final Serializable... params) {
* @param params list of params (optional)
*/
public VUserException(final LocaleMessageKey key, final Serializable... params) {
this((LocaleMessageText.of(key, params)));
this(LocaleMessageText.of(key, params));
}

/**
Expand Down

0 comments on commit 19a808e

Please sign in to comment.