mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
Apply suggestions from code review
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user