Skip to content

Commit

Permalink
fix(actions): removed default for test-type and metric-name
Browse files Browse the repository at this point in the history
  • Loading branch information
haverchuck committed Oct 31, 2023
1 parent 26a16b5 commit ad31cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actions/bin/log_cw_metric.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ Future<void> logMetric() async {
*/

// Inputs for Metric
final metricName = core.getRequiredInput('metric-name') ?? defaultValue;
final testType = core.getRequiredInput('test-type') ?? defaultValue;
final metricName = core.getRequiredInput('metric-name');
final testType = core.getRequiredInput('test-type');
if (!['canary', 'e2e', 'unit'].contains(testType)) {
throw Exception(
'test-type input of $testType must be one of: canary, e2e, unit',
Expand Down

0 comments on commit ad31cd2

Please sign in to comment.