[PR #178] [MERGED] refactor: Use discardableResult to suppress warning #1498

Closed
opened 2026-03-03 19:07:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/PlayCover/PlayCover/pull/178
Author: @KhoraLee
Created: 8/18/2022
Status: Merged
Merged: 8/18/2022
Merged by: @Depal1

Base: developHead: refactor/discardableResult


📝 Commits (1)

  • 2b0cb58 refactor: Use discardableResult to suppress warning

📊 Changes

3 files changed (+8 additions, -6 deletions)

View changed files

📝 PlayCover/AppInstaller/Installer.swift (+2 -2)
📝 PlayCover/Utils/PlayTools.swift (+3 -3)
📝 PlayCover/Utils/Shell.swift (+3 -1)

📄 Description

Instead of using _ = expression() to suppress "Result of call to 'xxx' is unused" warning, use @discardableResult to suppress warning.


🔄 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/PlayCover/PlayCover/pull/178 **Author:** [@KhoraLee](https://github.com/KhoraLee) **Created:** 8/18/2022 **Status:** ✅ Merged **Merged:** 8/18/2022 **Merged by:** [@Depal1](https://github.com/Depal1) **Base:** `develop` ← **Head:** `refactor/discardableResult` --- ### 📝 Commits (1) - [`2b0cb58`](https://github.com/PlayCover/PlayCover/commit/2b0cb58b59c99e858188e1e6dc4ffcb2238b76ff) refactor: Use discardableResult to suppress warning ### 📊 Changes **3 files changed** (+8 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `PlayCover/AppInstaller/Installer.swift` (+2 -2) 📝 `PlayCover/Utils/PlayTools.swift` (+3 -3) 📝 `PlayCover/Utils/Shell.swift` (+3 -1) </details> ### 📄 Description Instead of using `_ = expression()` to suppress "Result of call to 'xxx' is unused" warning, use `@discardableResult` to suppress warning. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 19:07:22 +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/PlayCover#1498
No description provided.