| Index: common/api/dm/service/v1/finish_attempt_normalize.go
|
| diff --git a/common/api/dm/service/v1/finish_attempt_normalize.go b/common/api/dm/service/v1/finish_attempt_normalize.go
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..47eeafc8b94d51819c0cee02cc2f77839ee1dc1d
|
| --- /dev/null
|
| +++ b/common/api/dm/service/v1/finish_attempt_normalize.go
|
| @@ -0,0 +1,14 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +package dm
|
| +
|
| +// Normalize returns an error iff the ActivateExecutionReq has bad form (nils,
|
| +// insufficient activation token length, etc.
|
| +func (a *FinishAttemptReq) Normalize() error {
|
| + if err := a.Auth.Normalize(); err != nil {
|
| + return err
|
| + }
|
| + return nil
|
| +}
|
|
|