Skip to content

chore: make function comment match function name #496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/client-sdk/redemption/covenantless_redeem.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (r *CovenantlessRedeemBranch) ExpiresAt() (*time.Time, error) {
return &t, nil
}

// offchainPath checks for transactions of the branch onchain and returns only the offchain part
// OffchainPath checks for transactions of the branch onchain and returns only the offchain part
func (r *CovenantlessRedeemBranch) OffchainPath() ([]*psbt.Packet, error) {
offchainPath := append([]*psbt.Packet{}, r.branch...)

Expand Down
2 changes: 1 addition & 1 deletion server/pkg/kvdb/etcd/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (c *commitStatsCollector) PrintStats() string {
return s
}

// updateStatsMap updatess commit stats map for a caller.
// updateStatMap updatess commit stats map for a caller.
func updateStatMap(
caller string, stats CommitStats, m map[string]*callerStats) {

Expand Down
2 changes: 1 addition & 1 deletion server/pkg/kvdb/etcd/readwrite_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func newReadWriteTx(stm STM, prefix string, lock sync.Locker) *readWriteTx {
}
}

// rooBucket is a helper function to return the always present
// rootBucket is a helper function to return the always present
// pseudo root bucket.
func rootBucket(tx *readWriteTx) *readWriteBucket {
return newReadWriteBucket(tx, tx.rootBucketID[:], tx.rootBucketID[:])
Expand Down
2 changes: 1 addition & 1 deletion server/pkg/macaroons/constraints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func TestTimeoutConstraint(t *testing.T) {
}
}

// TestTimeoutConstraint tests that a caveat for the lifetime of
// TestIpLockConstraint tests that a caveat for the lifetime of
// a macaroon is created.
func TestIpLockConstraint(t *testing.T) {
t.Parallel()
Expand Down
2 changes: 1 addition & 1 deletion server/pkg/macaroons/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ func (svc *Service) ChangePassword(oldPw, newPw []byte) error {
return nil
}

// bakeMacaroon creates a new macaroon with newest version and the given
// BakeMacaroon creates a new macaroon with newest version and the given
// permissions then returns it binary serialized.
func (svc *Service) BakeMacaroon(
ctx context.Context, permissions []bakery.Op,
Expand Down
Loading