Skip to content

Commit 1e4d6ad

Browse files
authored
chore: make function comment match function name (#5217)
Signed-off-by: eveneast <[email protected]>
1 parent df2dad9 commit 1e4d6ad

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

internal/peer/chaincode/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func GetCollectionConfigFromFile(ccFile string) (*pb.CollectionConfigPackage, []
173173
return getCollectionConfigFromBytes(fileBytes)
174174
}
175175

176-
// getCollectionConfig retrieves the collection configuration
176+
// getCollectionConfigFromBytes retrieves the collection configuration
177177
// from the supplied byte array; the byte array must contain a
178178
// json-formatted array of collectionConfigJson elements
179179
func getCollectionConfigFromBytes(cconfBytes []byte) (*pb.CollectionConfigPackage, []byte, error) {

internal/peer/lifecycle/chaincode/calculatepackageid.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func CalculatePackageIDCmd(p *PackageIDCalculator) *cobra.Command {
7979
return calculatePackageIDCmd
8080
}
8181

82-
// PackageIDCalculator calculates the package ID for a packaged chaincode.
82+
// CalculatePackageID calculates the package ID for a packaged chaincode.
8383
func (p *PackageIDCalculator) CalculatePackageID(args []string) error {
8484
if p.Command != nil {
8585
// Parsing of the command line is done so silence cmd usage

internal/peer/lifecycle/chaincode/checkcommitreadiness.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ func (c *CommitReadinessChecker) printResponse(proposalResponse *pb.ProposalResp
261261
return nil
262262
}
263263

264-
// setInput creates the input struct based on the CLI flags
264+
// createInput creates the input struct based on the CLI flags
265265
func (c *CommitReadinessChecker) createInput() (*CommitReadinessCheckInput, error) {
266266
policyBytes, err := createPolicyBytes(signaturePolicy, channelConfigPolicy)
267267
if err != nil {

0 commit comments

Comments
 (0)