mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 03:41:34 +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
|
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) {
|
func CreateManifest(di *DebugInfo, o *Options) (*manifest.Manifest, error) {
|
||||||
m, err := di.ConvertToManifest(o)
|
m, err := di.ConvertToManifest(o)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -76,7 +76,7 @@ const (
|
||||||
// newStorageItemsAdded means that contract storage items are up-to-date with the current
|
// newStorageItemsAdded means that contract storage items are up-to-date with the current
|
||||||
// state.
|
// state.
|
||||||
newStorageItemsAdded
|
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.
|
// in case of state jump) was removed from the storage.
|
||||||
staleBlocksRemoved
|
staleBlocksRemoved
|
||||||
// headersReset denotes stale SYS-prefixed and IX-prefixed information was removed from
|
// 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")
|
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 {
|
type item struct {
|
||||||
txn *transaction.Transaction
|
txn *transaction.Transaction
|
||||||
blockStamp uint32
|
blockStamp uint32
|
||||||
|
|
|
@ -48,7 +48,7 @@ func NewDivisible(actor Actor, hash util.Uint160) *Divisible {
|
||||||
return &Divisible{*NewDivisibleReader(actor, hash), DivisibleWriter{BaseWriter{hash, actor}}}
|
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
|
// the given token. It depends on the server to provide proper session-based
|
||||||
// iterator, but can also work with expanded one.
|
// iterator, but can also work with expanded one.
|
||||||
func (t *DivisibleReader) OwnerOf(token []byte) (*OwnerIterator, error) {
|
func (t *DivisibleReader) OwnerOf(token []byte) (*OwnerIterator, error) {
|
||||||
|
|
|
@ -84,8 +84,7 @@ func (r *Request) UnmarshalJSON(data []byte) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// DecodeData decodes the given reader into the the request
|
// DecodeData decodes the given reader into the request struct.
|
||||||
// struct.
|
|
||||||
func (r *Request) DecodeData(data io.ReadCloser) error {
|
func (r *Request) DecodeData(data io.ReadCloser) error {
|
||||||
defer data.Close()
|
defer data.Close()
|
||||||
|
|
||||||
|
|
|
@ -1124,7 +1124,7 @@ func (p *Pointer) Position() int {
|
||||||
return p.pos
|
return p.pos
|
||||||
}
|
}
|
||||||
|
|
||||||
// Buffer represents represents a Buffer stack item.
|
// Buffer represents a Buffer stack item.
|
||||||
type Buffer []byte
|
type Buffer []byte
|
||||||
|
|
||||||
// NewBuffer returns a new Buffer object.
|
// NewBuffer returns a new Buffer object.
|
||||||
|
|
Loading…
Reference in a new issue