The goal of this PR is to improve readability by reducing the amount of indentation. Below a small before and after to see the indentation change
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/11164
**Author:** [@tidely](https://github.com/tidely)
**Created:** 3/4/2025
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `guards`
---
### 📝 Commits (1)
- [`9b55353`](https://github.com/open-webui/open-webui/commit/9b55353ac647a18fa7f2ca303547b11ca21af1ab) chore: reduce nested if statements by using guard clauses
### 📊 Changes
**1 file changed** (+48 additions, -50 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/routers/knowledge.py` (+48 -50)
</details>
### 📄 Description
## Description
This makes no functional changes to the code.
The goal of this PR is to improve readability by reducing the amount of indentation. Below a small before and after to see the indentation change


---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/11164
Author: @tidely
Created: 3/4/2025
Status: ❌ Closed
Base:
dev← Head:guards📝 Commits (1)
9b55353chore: reduce nested if statements by using guard clauses📊 Changes
1 file changed (+48 additions, -50 deletions)
View changed files
📝
backend/open_webui/routers/knowledge.py(+48 -50)📄 Description
Description
This makes no functional changes to the code.
The goal of this PR is to improve readability by reducing the amount of indentation. Below a small before and after to see the indentation change
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.