Skip to content

Commit 73012e8

Browse files
committed
- fixed flake errors
1 parent d6749da commit 73012e8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pygeoapi/api/tiles.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,14 @@ def get_collection_tiles(api: API, request: APIRequest,
141141

142142
tiling_schemes = p.get_tiling_schemes()
143143

144-
145144
dataType = None
146145
if (t['format']['mimetype'] == 'application/vnd.mapbox-vector-tile'):
147146
dataType = 'vector'
148147
elif (t['format']['mimetype'] == 'image/png'):
149148
dataType = 'map'
150-
151-
if dataType == None:
152-
LOGGER.error ("Could not determine tile data type")
149+
150+
if dataType is None:
151+
LOGGER.error("Could not determine tile data type")
153152

154153
for matrix in tiling_schemes:
155154
tile_matrix = {
@@ -477,11 +476,11 @@ def get_oas_30(cfg: dict, locale: str) -> tuple[list[dict[str, str]], dict[str,
477476

478477
operationId_tileSetsList = ''
479478
operationId_tile = ''
480-
if (tile_extension['format']['mimetype'] == 'application/vnd.mapbox-vector-tile'):
479+
if (tile_extension['format']['mimetype'] == 'application/vnd.mapbox-vector-tile'): # noqa
481480
operationId_tileSetsList.join(f'describe{k.capitalize()}.collection.vector.getTileSetsList'), # noqa
482481
operationId_tile.join(f'get{k.capitalize()}.collection.vector.getTile'), # noqa
483482
else:
484-
LOGGER.error ("operation id is currently supported only for vector tiles")
483+
LOGGER.error("operation id is currently supported only for vector tiles") # noqa
485484

486485
paths[tiles_path] = {
487486
'get': {

0 commit comments

Comments
 (0)