Skip to content

Commit af0ebbf

Browse files
phbnfroger2hk
andauthored
Update internal/ct/handlers.go
Co-authored-by: Roger Ng <roger2hk@gmail.com>
1 parent aa3b0a6 commit af0ebbf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/ct/handlers.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,8 @@ func addChainInternal(ctx context.Context, opts *HandlerOptions, log *log, w htt
287287
}
288288
return http.StatusInternalServerError, nil, fmt.Errorf("couldn't store the leaf: %v", err)
289289
}
290-
dedupedAttribute := duplicateKey.Bool(false)
291290
isDup := dedupedTimeMillis != timeMillis
292-
if isDup {
293-
dedupedAttribute = duplicateKey.Bool(true)
294-
}
291+
dedupedAttribute := duplicateKey.Bool(isDup)
295292
entry.Timestamp = dedupedTimeMillis
296293

297294
// Always use the returned leaf as the basis for an SCT.

0 commit comments

Comments
 (0)