# gpui: Simplify tab group lookup logic in SystemWindowTabController \(\#40466\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8d48f9cdae65116145535d730ca129b4ed880819)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8d48f9cdae65116145535d730ca129b4ed880819

Requested commit: 8d48f9cdae65116145535d730ca129b4ed880819

Commit: 8d48f9cdae65116145535d730ca129b4ed880819

Tree: 03bf6d891650fc5fc9719b93a2aeb51be7336dcf

Author: Xiaobo Liu

Committer: GitHub

## Message

```
gpui: Simplify tab group lookup logic in SystemWindowTabController (#40466)

Refactor the find_tab_group method to use the question mark operator for
cleaner error handling, replacing the explicit if-else pattern with a
more concise chained approach.

Release Notes:

- N/A

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
```

## Parents

- [41994452f2726be1912fd1d7df7de26ffdce479d](https://git.cafe/gitcafe/zed/commit/41994452f2726be1912fd1d7df7de26ffdce479d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8d48f9cdae65116145535d730ca129b4ed880819?format=markdown)
