Running brew style fixed this issue for me.
Update
As mentioned in the comments, for some people the solution is:
brew update-reset
Running brew style fixed this issue for me.
Update
As mentioned in the comments, for some people the solution is:
brew update-reset