Skip to content

Commit 677c916

Browse files
committed
Pythonize comprehension
Makes the intention more clear
1 parent 700f1ff commit 677c916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arho_feature_template/utils/misc_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def check_layer_changes() -> bool:
5454
project = QgsProject.instance()
5555
layers = project.mapLayers().values()
5656

57-
return any(isinstance(layer, QgsVectorLayer) and layer.isModified() for layer in layers)
57+
return any(layer.isModified() for layer in layers if isinstance(layer, QgsVectorLayer))
5858

5959

6060
def prompt_commit_changes() -> bool:

0 commit comments

Comments
 (0)