Skip to content

Commit

Permalink
Refac
Browse files Browse the repository at this point in the history
  • Loading branch information
armin-reichert committed May 27, 2024
1 parent bb7ecb0 commit 0260a6d
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,9 @@ void clearLevel() {
public WorldMap loadMap(String path) {
URL mapURL = getClass().getResource(path);
if (mapURL != null) {
try {
var map = new WorldMap(mapURL);
Logger.info("Map loaded from URL {}", mapURL);
return map;
}
catch (IOException x) {
Logger.error("Error loading world map from URL '{}'", mapURL);
return null;
}
var map = new WorldMap(mapURL);
Logger.info("Map loaded from URL {}", mapURL);
return map;
}
Logger.error("Error loading web map from resource path '{}'", path);
return null;
Expand Down

0 comments on commit 0260a6d

Please sign in to comment.