Skip to content

Commit

Permalink
Fixes logic bug in sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
lwindolf authored and fguillot committed May 12, 2022
1 parent 8e6babe commit 0014aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion googlereader/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0014aac

Please sign in to comment.