Skip to content

Commit

Permalink
nsfp, formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mopsalarm committed Nov 12, 2016
1 parent 84fe99f commit 0dae3f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions content_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ const (
SFW ContentType = 1
NSFW ContentType = 2
NSFL ContentType = 4
AUDIO ContentType = 8
NSFP ContentType = 8
)

var AllContentTypes = ContentTypes{SFW, NSFW, NSFL, AUDIO}
var AllContentTypes = ContentTypes{SFW, NSFW, NSFL, NSFP}

func (types ContentTypes) AsFlags() int {
var result int
Expand All @@ -37,8 +37,8 @@ func ToContentTypes(flags int) ContentTypes {
if flags&int(NSFL) != 0 {
result = append(result, NSFL)
}
if flags&int(AUDIO) != 0 {
result = append(result, AUDIO)
if flags&int(NSFP) != 0 {
result = append(result, NSFP)
}

return result
Expand Down
4 changes: 2 additions & 2 deletions stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func Stream(req ItemsRequest, consume Consumer) error {
}

return true, nil
});
})
}

func StreamPaged(req ItemsRequest, consume PageConsumer) error {
Expand All @@ -34,7 +34,7 @@ func StreamPaged(req ItemsRequest, consume PageConsumer) error {
return nil
}

req.Older = items.Items[len(items.Items) - 1].Id
req.Older = items.Items[len(items.Items)-1].Id
}
}

Expand Down

0 comments on commit 0dae3f1

Please sign in to comment.