Преглед изворни кода

Fixes logic bug in sanity check

Lars Windolf пре 4 година
родитељ
комит
0014aac201
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      googlereader/handler.go

+ 1 - 1
googlereader/handler.go

@@ -301,7 +301,7 @@ func checkAndSimplifyTags(addTags []Stream, removeTags []Stream) (map[StreamType
 	for _, s := range addTags {
 		switch s.Type {
 		case ReadStream:
-			if _, ok := tags[ReadStream]; ok {
+			if _, ok := tags[KeptUnreadStream]; ok {
 				return nil, fmt.Errorf(KeptUnread + " and " + Read + " should not be supplied simultaneously")
 			}
 			tags[ReadStream] = true