diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2014-11-16 10:21:03 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2014-11-16 10:21:03 +0800 |
commit | 3588c4a9feb4204419d9c0fa2a4c9089120221b7 (patch) | |
tree | 46092507c7e171597cd16ba24d60d943e4433105 /cmd/ethereum/repl | |
parent | 71b338e8ac00cbe552846d104cd5acd9b436641e (diff) | |
download | dexon-3588c4a9feb4204419d9c0fa2a4c9089120221b7.tar dexon-3588c4a9feb4204419d9c0fa2a4c9089120221b7.tar.gz dexon-3588c4a9feb4204419d9c0fa2a4c9089120221b7.tar.bz2 dexon-3588c4a9feb4204419d9c0fa2a4c9089120221b7.tar.lz dexon-3588c4a9feb4204419d9c0fa2a4c9089120221b7.tar.xz dexon-3588c4a9feb4204419d9c0fa2a4c9089120221b7.tar.zst dexon-3588c4a9feb4204419d9c0fa2a4c9089120221b7.zip |
formatting update per gofmt
Diffstat (limited to 'cmd/ethereum/repl')
-rw-r--r-- | cmd/ethereum/repl/repl_windows.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cmd/ethereum/repl/repl_windows.go b/cmd/ethereum/repl/repl_windows.go index 9b1eb3b7d..d2c405ee9 100644 --- a/cmd/ethereum/repl/repl_windows.go +++ b/cmd/ethereum/repl/repl_windows.go @@ -32,7 +32,7 @@ func (self *JSRepl) read() { if err != nil { fmt.Println("Error reading input", err) } else { - if (string(str) == "exit") { + if string(str) == "exit" { self.Stop() break } else { @@ -46,25 +46,25 @@ func addHistory(s string) { } func printColored(outputVal string) { - for ; outputVal != "" ; { + for outputVal != "" { codePart := "" - if (strings.HasPrefix(outputVal, "\033[32m")) { + if strings.HasPrefix(outputVal, "\033[32m") { codePart = "\033[32m" changeColor(2) } - if (strings.HasPrefix(outputVal, "\033[1m\033[30m")) { + if strings.HasPrefix(outputVal, "\033[1m\033[30m") { codePart = "\033[1m\033[30m" changeColor(8) } - if (strings.HasPrefix(outputVal, "\033[31m")) { + if strings.HasPrefix(outputVal, "\033[31m") { codePart = "\033[31m" changeColor(red) } - if (strings.HasPrefix(outputVal, "\033[35m")) { + if strings.HasPrefix(outputVal, "\033[35m") { codePart = "\033[35m" changeColor(5) } - if (strings.HasPrefix(outputVal, "\033[0m")) { + if strings.HasPrefix(outputVal, "\033[0m") { codePart = "\033[0m" resetColorful() } |