mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-22 19:19:09 +00:00
Merge pull request #3678 from nspcc-dev/dupword
*: fix some dupword warnings
This commit is contained in:
commit
cb51eeb1b1
6 changed files with 6 additions and 7 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue