Fix Lens configuration lint diagnostics

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
This commit is contained in:
Martin Vogel committed 2026-10-11 19:03:41 +02:00
1 parent 1a073040ef
commit 5ff46cde09
3 files changed
+9 -7

No files matched your search

+6 -3
View File
@@ -406,9 +406,12 @@ static bool resolve_environment(const char *key, const char **value) {
continue;
if (strcmp(settings[i].type, "boolean") == 0) {
bool enabled = strcmp(environment_values[i], "true") == 0;
*value = !enabled && strcmp(key, "CBM_DISABLE_LSP_CROSS") == 0 ? NULL
: enabled ? "1"
: "0";
if (enabled)
*value = "1";
else if (strcmp(key, "CBM_DISABLE_LSP_CROSS") == 0)
*value = NULL;
else
*value = "0";
} else
*value = environment_values[i];
return true;
+2 -2
View File
@@ -2815,8 +2815,8 @@ int main(int argc, char **argv) {
}
#endif
bool configure_stateless = role == CBM_DAEMON_PROCESS_STATELESS && argc > 1 &&
strcmp(argv[1], "config") == 0;
bool configure_stateless =
role == CBM_DAEMON_PROCESS_STATELESS && argc > 1 && strcmp(argv[1], "config") == 0;
if ((role != CBM_DAEMON_PROCESS_STATELESS && role != CBM_DAEMON_PROCESS_HOOK_CLIENT) ||
configure_stateless) {
const char *settings_cache = cbm_resolve_cache_dir();
+1 -2
View File
@@ -115,8 +115,7 @@ typedef struct {
/* Thread-safe snapshot with a constant-time registry lookup. A NULL watcher
* reports both fields false; a NULL project reports only the run-loop state.
* Registrations can remain present after the watcher has stopped. */
cbm_watcher_project_status_t cbm_watcher_project_status(cbm_watcher_t *w,
const char *project_name);
cbm_watcher_project_status_t cbm_watcher_project_status(cbm_watcher_t *w, const char *project_name);
/* Return the number of projects in the watch list. */
int cbm_watcher_watch_count(cbm_watcher_t *w);