Apply suggestions from code review

This commit is contained in:
Owen Mansel-Chan
2025-03-07 23:11:01 +00:00
committed by GitHub
parent 166d5230f7
commit 88e96829fb
2 changed files with 6 additions and 11 deletions

View File

@@ -82,7 +82,6 @@ extensions:
- ["group:gocb2", "AnalyticsResultRaw", True, "NextBytes", "", "", "Argument[receiver]", "ReturnValue", "taint", "manual"]
- ["group:gocb2", "GetResult", True, "Content", "", "", "Argument[receiver]", "Argument[0]", "taint", "manual"]
- ["group:gocb2", "LookupInResult", True, "ContentAt", "", "", "Argument[receiver]", "Argument[1]", "taint", "manual"]
- ["group:gocb2", "LookupInAllReplicasResult", True, "Next", "", "", "Argument[receiver]", "ReturnValue", "taint", "manual"]
- ["group:gocb2", "MutateInResult", True, "ContentAt", "", "", "Argument[receiver]", "Argument[1]", "taint", "manual"]
- ["group:gocb2", "QueryResult", True, "One", "", "", "Argument[receiver]", "Argument[0]", "taint", "manual"]
- ["group:gocb2", "QueryResult", True, "Raw", "", "", "Argument[receiver]", "ReturnValue", "taint", "manual"]

View File

@@ -1261,7 +1261,7 @@ type ExistsOptions struct {
}
type ExistsResult struct {
Result Result
Result
}
func (_ *ExistsResult) Cas() Cas {
@@ -1512,7 +1512,7 @@ func (_ *GetReplicaResult) IsReplica() bool {
}
type GetResult struct {
Result Result
Result
}
func (_ *GetResult) Cas() Cas {
@@ -1664,17 +1664,13 @@ type LookupInOptions struct {
}
type LookupInReplicaResult struct {
LookupInResult *LookupInResult
*LookupInResult
}
func (_ LookupInReplicaResult) Cas() Cas {
return 0
}
func (_ LookupInReplicaResult) ContentAt(_ uint, _ interface{}) error {
return nil
}
func (_ LookupInReplicaResult) Exists(_ uint) bool {
return false
}
@@ -1684,7 +1680,7 @@ func (_ *LookupInReplicaResult) IsReplica() bool {
}
type LookupInResult struct {
Result Result
Result
}
func (_ *LookupInResult) Cas() Cas {
@@ -1738,7 +1734,7 @@ func (_ *MutateInResult) Cas() Cas {
type MutateInSpec struct{}
type MutationResult struct {
Result Result
Result
}
func (_ MutationResult) MutationToken() *MutationToken {
@@ -2175,7 +2171,7 @@ func (_ *ScanResult) Next() *ScanResultItem {
}
type ScanResultItem struct {
Result Result
Result
}
func (_ *ScanResultItem) Cas() Cas {