Passage
Righteous art thou, O LORD, and upright are thy judgments.
Righteous art thou, O LORD, and upright are thy judgments.
Psalms 119:135 Make thy face to shine upon thy servant; and teach me thy statutes.
Psalms 119:136 Rivers of waters run down mine eyes, because they keep not thy law.
Psalms 119:137 Righteous art thou, O LORD, and upright are thy judgments.
Psalms 119:138 Thy testimonies that thou hast commanded are righteous and very faithful.
Psalms 119:139 My zeal hath consumed me, because mine enemies have forgotten thy words.
The verse centers on "righteous", "thou", "lord", "upright", and "judgments". It is saying that the verse draws attention to "righteous" and "thou", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 136's "Rivers of waters run down mine eyes..." into verse 138's "Thy testimonies that thou hast commanded are...", so "righteous" and "thou" belong inside that flow. In Psalms context, the local focus is worship, trust, the LORD's kingship, and covenant mercy.
A plain takeaway is to answer the verse's own emphasis on "righteous" and "thou" with trust shaped by these words, not by a vague optimism outside the passage.