Skip to content
Snippets Groups Projects
Unverified Commit c9130a92 authored by deepsource-autofix[bot]'s avatar deepsource-autofix[bot] Committed by GitHub
Browse files

Merge variable declaration with assignment

parent 899ce262
No related branches found
No related tags found
No related merge requests found
......@@ -123,8 +123,7 @@ func RevokeST(tx *sqlx.Tx, id stid.STID, recursive bool) error {
// CountRTOccurrences counts how many SuperTokens use the passed refresh token
func CountRTOccurrences(tx *sqlx.Tx, rt string) (count int, err error) {
var rtHash string
rtHash = hashUtils.SHA512Str([]byte(rt))
var rtHash string = hashUtils.SHA512Str([]byte(rt))
err = db.RunWithinTransaction(tx, func(tx *sqlx.Tx) error {
err = tx.Get(&count, `SELECT COUNT(1) FROM SuperTokens WHERE rt_hash=?`, rtHash)
return err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment