From 480acc95d5c51fcbb41c116491924ef2c7f1b98d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 27 Nov 2025 12:22:44 +0000 Subject: [PATCH 1/2] Initial plan From d4af2e0aad81334d211e197735b12e2cad5c1942 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 27 Nov 2025 12:26:05 +0000 Subject: [PATCH 2/2] Fix SIM102 linting issue - combine nested if statements Co-authored-by: weiiwang01 <18743205+weiiwang01@users.noreply.github.com> --- src/irc.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/irc.py b/src/irc.py index 3d8c265..ddd5ff3 100644 --- a/src/irc.py +++ b/src/irc.py @@ -289,9 +289,8 @@ def _eval_conf_local( data = yaml.safe_load(config_file) try: db_conn = data["database"]["connectionString"] - if self.db: - if db_conn == "" or db_conn != self.db.uri: - data["database"]["connectionString"] = self.db.uri + if self.db and (db_conn == "" or db_conn != self.db.uri): + data["database"]["connectionString"] = self.db.uri if self.matrix: data["homeserver"]["url"] = self.matrix.homeserver data["homeserver"]["domain"] = get_matrix_domain(self.matrix.homeserver)