@@ -41,23 +41,28 @@ func (c *Reddit) MiraRequest(method string, target string, payload map[string]st
41
41
}
42
42
43
43
func (c * Reddit ) Me () * Reddit {
44
- return c .addQueue (c .Creds .Username , "me" )
44
+ c .addQueue (c .Creds .Username , "me" )
45
+ return c
45
46
}
46
47
47
48
func (c * Reddit ) Subreddit (name ... string ) * Reddit {
48
- return c .addQueue (strings .Join (name , "+" ), "subreddit" )
49
+ c .addQueue (strings .Join (name , "+" ), "subreddit" )
50
+ return c
49
51
}
50
52
51
53
func (c * Reddit ) Submission (name string ) * Reddit {
52
- return c .addQueue (name , "submission" )
54
+ c .addQueue (name , "submission" )
55
+ return c
53
56
}
54
57
55
58
func (c * Reddit ) Comment (name string ) * Reddit {
56
- return c .addQueue (name , "comment" )
59
+ c .addQueue (name , "comment" )
60
+ return c
57
61
}
58
62
59
63
func (c * Reddit ) Redditor (name string ) * Reddit {
60
- return c .addQueue (name , "redditor" )
64
+ c .addQueue (name , "redditor" )
65
+ return c
61
66
}
62
67
63
68
func (c * Reddit ) Submissions (sort string , tdur string , limit int ) ([]models.PostListingChild , error ) {
@@ -563,9 +568,8 @@ func (c *Reddit) checkType(rtype ...string) (string, string, error) {
563
568
return name , ttype , nil
564
569
}
565
570
566
- func (c * Reddit ) addQueue (name string , ttype string ) * Reddit {
571
+ func (c * Reddit ) addQueue (name string , ttype string ) {
567
572
c .Chain = append (c .Chain , ChainVals {Name : name , Type : ttype })
568
- return c
569
573
}
570
574
571
575
func (c * Reddit ) getQueue () (string , string ) {
0 commit comments