Skip to content

Commit

Permalink
Some formatting changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorfromhell committed Nov 27, 2024
1 parent 435ec85 commit f7c2d89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Core/src/net/tnemc/core/manager/CurrencyManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import net.tnemc.core.TNECore;
import net.tnemc.core.currency.Currency;
import net.tnemc.core.currency.CurrencyLoader;
import net.tnemc.core.currency.CurrencySaver;
Expand Down Expand Up @@ -92,7 +93,7 @@ public boolean load(final File parent, final boolean reset) {

try {
loader.loadCurrencies(new File(parent, "currency"));
} catch(NoValidCurrenciesException ignore) {
} catch(final NoValidCurrenciesException ignore) {
if(retry) {
PluginCore.log().error("No valid currencies found and failed to create USD defaults! Disabling plugin. Configure your currencies properly then retry!", DebugLevel.OFF);
return false;
Expand Down Expand Up @@ -310,7 +311,7 @@ public Optional<Currency> findCurrency(final String identifier) {
try {

return Optional.ofNullable(currencies.get(UUID.fromString(identifier)));
} catch(Exception ignore) {
} catch(final Exception ignore) {

for(final Map.Entry<String, UUID> entry : curIDMap.entrySet()) {

Expand Down
2 changes: 1 addition & 1 deletion Core/src/net/tnemc/core/manager/TransactionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public TransactionManager() {

try {
this.amount = new BigDecimal(MainConfig.yaml().getString("Core.Transactions.Tracking.Amount", "400"));
} catch(NumberFormatException ignore) {
} catch(final NumberFormatException ignore) {

//Invalid configuration so we set our default
this.amount = new BigDecimal("400");
Expand Down

0 comments on commit f7c2d89

Please sign in to comment.