Revert "local state: clone check to avoid side effect"

This reverts commit af1243c7251fe6291145bbe4f4dacd374779c425.
This commit is contained in:
Frank Schroeder 2017-10-23 10:08:32 +02:00
parent a6e55af1e0
commit fe0f7c961d
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
1 changed files with 0 additions and 3 deletions

View File

@ -335,9 +335,6 @@ func (l *State) AddCheck(check *structs.HealthCheck, token string) error {
return fmt.Errorf("no check")
}
// clone the check since we will be modifying it.
check = check.Clone()
if l.discardCheckOutput.Load().(bool) {
check.Output = ""
}