[PR #8] [MERGED] Refactor unnecessary else / elif when if block has a return statement #69

Closed
opened 2026-02-27 08:11:48 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/kokarare1212/librespot-python/pull/8
Author: @deepsource-autofix[bot]
Created: 4/9/2021
Status: Merged
Merged: 4/9/2021
Merged by: @kokarare1212

Base: mainHead: deepsource-fix-8489b1ba


📝 Commits (1)

  • bd2a636 Refactor unnecessary else / elif when if block has a return statement

📊 Changes

19 files changed (+52 additions, -70 deletions)

View changed files

📝 librespot/Version.py (+2 -3)
📝 librespot/audio/AbsChunkedInputStream.py (+1 -1)
📝 librespot/audio/AudioKeyManager.py (+4 -5)
📝 librespot/audio/PlayableContentFeeder.py (+2 -3)
📝 librespot/audio/cdn/CdnManager.py (+3 -5)
📝 librespot/audio/format/SuperAudioFormat.py (+11 -12)
📝 librespot/common/Base62.py (+2 -3)
📝 librespot/common/Utils.py (+1 -2)
📝 librespot/core/EventService.py (+1 -1)
📝 librespot/mercury/MercuryClient.py (+1 -2)
📝 librespot/metadata/AlbumId.py (+1 -2)
📝 librespot/metadata/ArtistId.py (+1 -2)
📝 librespot/metadata/EpisodeId.py (+1 -2)
📝 librespot/metadata/ShowId.py (+1 -2)
📝 librespot/metadata/TrackId.py (+1 -2)
📝 librespot/player/codecs/AudioQuality.py (+11 -12)
📝 librespot/standard/ByteArrayOutputStream.py (+1 -1)
📝 librespot/standard/DataInputStream.py (+2 -3)
📝 librespot/standard/InputStream.py (+5 -7)

📄 Description

No description provided


🔄 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/kokarare1212/librespot-python/pull/8 **Author:** [@deepsource-autofix[bot]](https://github.com/apps/deepsource-autofix) **Created:** 4/9/2021 **Status:** ✅ Merged **Merged:** 4/9/2021 **Merged by:** [@kokarare1212](https://github.com/kokarare1212) **Base:** `main` ← **Head:** `deepsource-fix-8489b1ba` --- ### 📝 Commits (1) - [`bd2a636`](https://github.com/kokarare1212/librespot-python/commit/bd2a63653b7022e58cd03c1e029192a50d563ccd) Refactor unnecessary `else` / `elif` when `if` block has a `return` statement ### 📊 Changes **19 files changed** (+52 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `librespot/Version.py` (+2 -3) 📝 `librespot/audio/AbsChunkedInputStream.py` (+1 -1) 📝 `librespot/audio/AudioKeyManager.py` (+4 -5) 📝 `librespot/audio/PlayableContentFeeder.py` (+2 -3) 📝 `librespot/audio/cdn/CdnManager.py` (+3 -5) 📝 `librespot/audio/format/SuperAudioFormat.py` (+11 -12) 📝 `librespot/common/Base62.py` (+2 -3) 📝 `librespot/common/Utils.py` (+1 -2) 📝 `librespot/core/EventService.py` (+1 -1) 📝 `librespot/mercury/MercuryClient.py` (+1 -2) 📝 `librespot/metadata/AlbumId.py` (+1 -2) 📝 `librespot/metadata/ArtistId.py` (+1 -2) 📝 `librespot/metadata/EpisodeId.py` (+1 -2) 📝 `librespot/metadata/ShowId.py` (+1 -2) 📝 `librespot/metadata/TrackId.py` (+1 -2) 📝 `librespot/player/codecs/AudioQuality.py` (+11 -12) 📝 `librespot/standard/ByteArrayOutputStream.py` (+1 -1) 📝 `librespot/standard/DataInputStream.py` (+2 -3) 📝 `librespot/standard/InputStream.py` (+5 -7) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 08:11:48 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot-python-kokarare1212#69
No description provided.