Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: Tools/GardeningServer/model/ct-failure-group.html

Issue 459723002: Sheriff-o-matic: Fix inverted condition when persisting annotations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/model/ct-failure-group.html
diff --git a/Tools/GardeningServer/model/ct-failure-group.html b/Tools/GardeningServer/model/ct-failure-group.html
index 723165866db724a63d327452e9e43c0a487f2dce..84d01dc9177f9b3b34157482aece5da39e030ff7 100644
--- a/Tools/GardeningServer/model/ct-failure-group.html
+++ b/Tools/GardeningServer/model/ct-failure-group.html
@@ -42,9 +42,9 @@ CTFailureGroup.prototype._annotate = function(newAnnotation) {
});
if (Object.size(annotation) == 0) {
- annotations[this.key] = annotation;
- } else {
delete annotations[this.key];
+ } else {
+ annotations[this.key] = annotation;
}
localStorage.CTFailureGroupAnnotations = JSON.stringify(annotations);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698