I was reading in the Journal of Discourses recently & Brigham Young is credited with the following quote:
The Lord gave me strength to lay aside tobacco, and it is very rarely indeed that I taste tea or coffee: yet I have no objection to aged persons, when they are fatigued and feel infirm, taking a little stimulus that will do them good. It is wrong to use narcotics, for the nervous system is destroyed or injured thereby; but we should maintain a healthy action of all the powers of the body, which should be devoted to the service of our Father and God in building up His kingdom on the earth
This was in 1865, 32 years after the revelation was originally given.
It then changed into what we have today.
Many times we have the impression that God speaks from Heaven & gives revelation & it is completely formed & never changes.
In reality it develops and changes over time. Sometimes that is good when you consider the opioid epidemic today.
Other times, it becomes codified into a "Kosher" belief system that passes judgement on the followers.
Outward signs of righteousness or sin. I don't believe it was meant to be used to measure righteousness.