Skip to content

Commit

Permalink
fix(firebase_vertexai): Remove unnecessary trailing whitespace (#16926)
Browse files Browse the repository at this point in the history
  • Loading branch information
kotaroyamazaki authored Jan 2, 2025
1 parent c6865e4 commit d9c98c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/firebase_vertexai/firebase_vertexai/lib/src/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,11 @@ enum HarmSeverity {
// ignore: unused_element
static HarmSeverity _parseValue(Object jsonObject) {
return switch (jsonObject) {
'HARM_SEVERITY_UNSPECIFIED ' => HarmSeverity.unknown,
'HARM_SEVERITY_UNSPECIFIED' => HarmSeverity.unknown,
'HARM_SEVERITY_NEGLIGIBLE' => HarmSeverity.negligible,
'HARM_SEVERITY_LOW' => HarmSeverity.low,
'HARM_SEVERITY_MEDIUM' => HarmSeverity.medium,
'HARM_SEVERITY_HIGH ' => HarmSeverity.high,
'HARM_SEVERITY_HIGH' => HarmSeverity.high,
_ => throw FormatException('Unhandled HarmSeverity format', jsonObject),
};
}
Expand Down

0 comments on commit d9c98c4

Please sign in to comment.