Przeglądaj źródła

Fixes logic bug in sanity check

Lars Windolf 4 lat temu
rodzic
commit
0014aac201
1 zmienionych plików z 1 dodań i 1 usunięć
  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