Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lbagg1 committed Jul 25, 2024
1 parent 536365c commit 0e755bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service-admin/internal/server/data/system_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ func (s *SystemMessageService) PutSystemMessages(ctx context.Context, messages m
deleted = true
messageValue = " "
}

_, err := s.ssmConn.Client.PutParameter(ctx, &ssm.PutParameterInput{
Name: aws.String(s.ssmConn.prefixedParameterName(messageKey)),
Value: aws.String(messageValue),
Type: types.ParameterTypeString,
Overwrite: aws.Bool(true)})

if err != nil {
return false, fmt.Errorf("error writing parameter: %w", err)
}
Expand Down
1 change: 1 addition & 0 deletions service-admin/internal/server/data/system_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func TestPutSystemMessages(t *testing.T) {
if *params.Value == " " {
return nil, nil
}

t.Errorf("Unexpected message value given for %s: got '%s'", *params.Name, *params.Value)
return nil, nil

Check failure on line 85 in service-admin/internal/server/data/system_message_test.go

View workflow job for this annotation

GitHub Actions / lint

return statements should not be cuddled if block has more than two lines (wsl)
}
Expand Down

0 comments on commit 0e755bc

Please sign in to comment.