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

Commit

Permalink
don't check for attachment; otherwise never entring jsonPath checks
Browse files Browse the repository at this point in the history
  • Loading branch information
blacs30 committed Aug 31, 2023
1 parent ba60726 commit c1c1c00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bitwarden.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,10 @@ func runGetItem() {
}

if totp {
return
} else {
receivedItem = ""
}
if jsonPath != "" && !(totp || attachment != "" || attachment == "") {
if jsonPath != "" && !totp {
log.Println("Sent jsonPath is", jsonPath)
// jsonpath operation to get only required part of the item
singleString := strings.Join(result, " ")
Expand Down

0 comments on commit c1c1c00

Please sign in to comment.