Skip to content

Conversation

@grynspan
Copy link
Contributor

@grynspan grynspan commented Nov 17, 2023

#102 introduced a warning when building the GitStatus executable, which we use to get repo information during building:

Warning

swift-testing/Sources/GitStatus/main.swift:65:24: warning: no calls to throwing functions occur within 'try' expression
    guard let output = try? stdoutPipe.fileHandleForReading.readData(ofLength: maxOutputCount) else {
                       ^

This PR resolves the warning.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

 #102 introduced a warning when building the GitStatus executable, which we use to get repo information during building:

> [!WARNING]
> ```
> swift-testing/Sources/GitStatus/main.swift:65:24: warning: no calls to throwing functions occur within 'try' expression
>     guard let output = try? stdoutPipe.fileHandleForReading.readData(ofLength: maxOutputCount) else {
>                        ^
> ```

This PR resolves the warning.
@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan grynspan merged commit e9e6124 into main Nov 17, 2023
@grynspan grynspan deleted the jgrynspan/fix-gitstatus-regression branch November 17, 2023 18:57
@stmontgomery stmontgomery added the bug 🪲 Something isn't working label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🪲 Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants