Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
fix var assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
blacs30 committed Aug 31, 2023
1 parent a672224 commit 32301d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bitwarden.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,9 @@ func runGetItem() {
isDecryptSecretFromJsonFailed = true
}
// replace starting bracket with dot as gsub uses a dot for the first group in an array
gjsonPath := strings.Replace(jsonPath, "[", ".", -1)
gjsonPath = strings.Replace(jsonPath, "]", "", -1)
gjsonPath := jsonPath
gjsonPath = strings.Replace(gjsonPath, "[", ".", -1)
gjsonPath = strings.Replace(gjsonPath, "]", "", -1)
if totp {
gjsonPath = "login.totp"
}
Expand Down

0 comments on commit 32301d0

Please sign in to comment.