cleanup: Use format strings in meson.build

Those are a bit more concise than ''.format(), and have been
in meson for a long time.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/353>
(cherry picked from commit 85ee8829bf)
This commit is contained in:
Florian Müllner
2024-10-20 23:12:57 +02:00
parent 6b34c996d3
commit b7f737492d
+2 -3
View File
@@ -74,8 +74,7 @@ if classic_mode_enabled
# Sanity check: Make sure all classic extensions are enabled
foreach e : classic_extensions
if not enabled_extensions.contains(e)
error('Classic mode is enabled, ' +
'but the required extension @0@ is not.'.format(e))
error(f'Classic mode is enabled, but the required extension @e@ is not')
endif
endforeach
endif
@@ -83,7 +82,7 @@ endif
# Sanity check: Make sure enabled extensions are valid
foreach e : enabled_extensions
if not all_extensions.contains(e)
error('Invalid extension @0@.'.format(e))
error(f'Invalid extension @e@.')
endif
endforeach