Merge pull request #3678 from nspcc-dev/dupword

*: fix some dupword warnings
This commit is contained in:
Anna Shaleva 2024-11-14 10:46:17 +03:00 committed by GitHub
commit cb51eeb1b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 6 additions and 7 deletions

View file

@ -448,7 +448,7 @@ func CompileAndSave(src string, o *Options) ([]byte, error) {
return f.Script, nil
}
// CreateManifest creates manifest and checks that is is valid.
// CreateManifest creates manifest and checks that is valid.
func CreateManifest(di *DebugInfo, o *Options) (*manifest.Manifest, error) {
m, err := di.ConvertToManifest(o)
if err != nil {

View file

@ -76,7 +76,7 @@ const (
// newStorageItemsAdded means that contract storage items are up-to-date with the current
// state.
newStorageItemsAdded
// staleBlocksRemoved means that state corresponding to the stale blocks (genesis block in
// staleBlocksRemoved means that state corresponding to the stale blocks (genesis block
// in case of state jump) was removed from the storage.
staleBlocksRemoved
// headersReset denotes stale SYS-prefixed and IX-prefixed information was removed from

View file

@ -37,7 +37,7 @@ var (
ErrOracleResponse = errors.New("conflicts with memory pool due to OracleResponse attribute")
)
// item represents a transaction in the the Memory pool.
// item represents a transaction in the Memory pool.
type item struct {
txn *transaction.Transaction
blockStamp uint32

View file

@ -48,7 +48,7 @@ func NewDivisible(actor Actor, hash util.Uint160) *Divisible {
return &Divisible{*NewDivisibleReader(actor, hash), DivisibleWriter{BaseWriter{hash, actor}}}
}
// OwnerOf returns returns an iterator that allows to walk through all owners of
// OwnerOf returns an iterator that allows to walk through all owners of
// the given token. It depends on the server to provide proper session-based
// iterator, but can also work with expanded one.
func (t *DivisibleReader) OwnerOf(token []byte) (*OwnerIterator, error) {

View file

@ -84,8 +84,7 @@ func (r *Request) UnmarshalJSON(data []byte) error {
return nil
}
// DecodeData decodes the given reader into the the request
// struct.
// DecodeData decodes the given reader into the request struct.
func (r *Request) DecodeData(data io.ReadCloser) error {
defer data.Close()

View file

@ -1124,7 +1124,7 @@ func (p *Pointer) Position() int {
return p.pos
}
// Buffer represents represents a Buffer stack item.
// Buffer represents a Buffer stack item.
type Buffer []byte
// NewBuffer returns a new Buffer object.