aboutsummaryrefslogtreecommitdiffstats
path: root/miner
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-08-28 09:42:01 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-08-28 09:42:01 +0800
commitd9addf79fadfed85a7437184aa3ab12622eb5d13 (patch)
tree20bca0f2c36d2fd48abf791332ef15a35eb02520 /miner
parent829201382b67e95ab31fca887234d1858c11c810 (diff)
downloadgo-tangerine-d9addf79fadfed85a7437184aa3ab12622eb5d13.tar.gz
go-tangerine-d9addf79fadfed85a7437184aa3ab12622eb5d13.tar.zst
go-tangerine-d9addf79fadfed85a7437184aa3ab12622eb5d13.zip
Improve error string and remove unneeded else clause
Diffstat (limited to 'miner')
-rw-r--r--miner/remote_agent.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/miner/remote_agent.go b/miner/remote_agent.go
index 5ccadb896..9e4453ce8 100644
--- a/miner/remote_agent.go
+++ b/miner/remote_agent.go
@@ -112,9 +112,8 @@ func (a *RemoteAgent) GetWork() ([3]string, error) {
a.work[block.HashNoNonce()] = a.currentWork
return res, nil
- } else {
- return res, errors.New("No work available yet, don't panic.")
}
+ return res, errors.New("No work available yet, don't panic.")
}
// Returns true or false, but does not indicate if the PoW was correct