Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Feb 12, 2024
1 parent d7d211e commit 1b4a2b5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions pubsignals/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ func ParseCredentialSubject(_ context.Context, credentialSubject any) (out []Pro
return nil, errors.New("Failed to convert credential subject to JSONObject")
}

// if len(jsonObject) == 0 {
// return nil, errors.New("query must have at least 1 predicate")
// }
for fieldName, fieldReq := range jsonObject {
fieldReqEntries, ok := fieldReq.(map[string]interface{})
if !ok {
Expand Down
5 changes: 0 additions & 5 deletions pubsignals/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,6 @@ func (q Query) verifyEmptyCredentialSubject(
return nil
}

func (q Query) isSelectivityDisclosure(
predicate map[string]interface{}) bool {
return q.CredentialSubject != nil && len(predicate) == 0
}

func (q Query) isEmptyCredentialSubject(
operator,
isMerklized int,
Expand Down

0 comments on commit 1b4a2b5

Please sign in to comment.