这两个句子都是正确的.
当动词不定式to do做主语补语(表语)的时候,如果前面出现过动词do,则to 可以省略.
All he ever does is (to)discuss the same boring list of medications.
All she ever does is (to)whinge and (to)complain.
因为前面出现了does, 所以后面的三个to都被省略掉了.
再例如:I have a secret to lose weight. All you have to do is (to) eat two oranges every day.