Skip to content

Commit

Permalink
Whoops, forgot to backport a change from main, during parameter filte…
Browse files Browse the repository at this point in the history
…r management updates
  • Loading branch information
aaime committed May 13, 2024
1 parent 40f9754 commit 565ba52
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/
package org.geowebcache.storage.blobstore.file;

import static java.util.Objects.isNull;
import static org.geowebcache.storage.blobstore.file.FilePathUtils.filteredGridSetId;
import static org.geowebcache.storage.blobstore.file.FilePathUtils.filteredLayerName;
import static org.geowebcache.util.FileUtils.listFilesNullSafe;
Expand Down Expand Up @@ -526,10 +525,8 @@ public void put(TileObject stObj) throws StorageException {
private void putParametersMetadata(
String layerName, String parametersId, Map<String, String> parameters)
throws StorageException {
assert (isNull(parametersId) == isNull(parameters));
if (isNull(parametersId)) {
return;
}
// check if we even need to use any IO
if (parametersId == null || parameters == null || parameters.isEmpty()) return;
File parametersFile = parametersFile(layerName, parametersId);
if (parametersFile.exists()) return;

Expand Down

0 comments on commit 565ba52

Please sign in to comment.