mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-24 22:32:15 +00:00
make linter happy
This commit is contained in:
parent
3f4847331f
commit
eccdce11c5
@ -13,7 +13,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const Version = "0.0.1"
|
const Version = "0.0.1"
|
||||||
const sleepSeconds = 1 // Every second
|
|
||||||
const readBufferSize = 1024 // 1KB at a time
|
const readBufferSize = 1024 // 1KB at a time
|
||||||
|
|
||||||
// Parse command-line options
|
// Parse command-line options
|
||||||
|
@ -25,7 +25,7 @@ func TestEncodeAndDecode(t *testing.T) {
|
|||||||
if hrp != "shasum" {
|
if hrp != "shasum" {
|
||||||
t.Error("Invalid hrp")
|
t.Error("Invalid hrp")
|
||||||
}
|
}
|
||||||
if bytes.Compare(data, sum[:]) != 0 {
|
if !bytes.Equal(data, sum[:]) {
|
||||||
t.Error("Invalid decode")
|
t.Error("Invalid decode")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,8 +76,7 @@ func (trs *TaskResultSet) Reap() *TaskResultSet {
|
|||||||
func (trs *TaskResultSet) Wait() *TaskResultSet {
|
func (trs *TaskResultSet) Wait() *TaskResultSet {
|
||||||
for i := 0; i < len(trs.results); i++ {
|
for i := 0; i < len(trs.results); i++ {
|
||||||
var trch = trs.chz[i]
|
var trch = trs.chz[i]
|
||||||
select {
|
result, ok := <-trch
|
||||||
case result, ok := <-trch:
|
|
||||||
if ok {
|
if ok {
|
||||||
// Write result.
|
// Write result.
|
||||||
trs.results[i] = taskResultOK{
|
trs.results[i] = taskResultOK{
|
||||||
@ -88,7 +87,6 @@ func (trs *TaskResultSet) Wait() *TaskResultSet {
|
|||||||
// We already wrote it.
|
// We already wrote it.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return trs
|
return trs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,10 +17,8 @@ func TestErrorPanic(t *testing.T) {
|
|||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
err = ErrorWrap(r, "This is the message in ErrorWrap(r, message).")
|
err = ErrorWrap(r, "This is the message in ErrorWrap(r, message).")
|
||||||
}
|
}
|
||||||
return
|
|
||||||
}()
|
}()
|
||||||
panic(pnk{"something"})
|
panic(pnk{"something"})
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var err = capturePanic()
|
var err = capturePanic()
|
||||||
|
@ -7,10 +7,6 @@ import (
|
|||||||
cmn "github.com/tendermint/tendermint/libs/common"
|
cmn "github.com/tendermint/tendermint/libs/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
func _fmt(f string, az ...interface{}) string {
|
|
||||||
return fmt.Sprintf(f, az...)
|
|
||||||
}
|
|
||||||
|
|
||||||
//----------------------------------------
|
//----------------------------------------
|
||||||
// debugDB
|
// debugDB
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user