rspec/rules/S3358/vbnet/compliant.adoc
Fred Tingaud a3f81b0b6c
Modify rule S3358: LaYC for Nested ternaries
Co-authored-by: Amélie Renard <44666826+amelie-renard-sonarsource@users.noreply.github.com>
2023-06-14 08:47:35 +00:00

8 lines
189 B
Plaintext

[source,vbnet]
----
Public Function GetReadableStatus(job As Job) As String
If job.IsRunning Then Return "Running"
Return If(job.HasErrors, "Failed", "Succeeded")
End Function
----