Skip to content

Commit

Permalink
Resolve swiftlint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jdisho committed Jan 24, 2025
1 parent 3b4b1ba commit e324b91
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ struct MultipleResourcesChatView: View {
.speechToolbarButton(muted: !$textToSpeech)
.viewStateAlert(state: llm.state)
.onChange(of: llm.context) {
if llm.state == .generating { return }
multipleResourceInterpreter.queryLLM()
if llm.state != .generating {
multipleResourceInterpreter.queryLLM()

Check warning on line 52 in LLMonFHIR/FHIRInterpretation/MultipleResources/MultipleResourcesChatView.swift

View check run for this annotation

Codecov / codecov/patch

LLMonFHIR/FHIRInterpretation/MultipleResources/MultipleResourcesChatView.swift#L37-L52

Added lines #L37 - L52 were not covered by tests
}
}
} else {
ProgressView()
Expand Down

0 comments on commit e324b91

Please sign in to comment.