fixing golint issues

pull/251/head
ak 6 years ago
parent 342cc90e3e
commit 8eee072300
  1. 2
      internal/beaconchain/libs/beaconchain.go
  2. 1
      scripts/travis_checker.sh

@ -54,6 +54,7 @@ type BeaconChain struct {
rpcServer *beaconchain.Server rpcServer *beaconchain.Server
} }
//SaveFile is to store the file in which beaconchain info will be stored.
var SaveFile string var SaveFile string
// Followings are the set of states of that beaconchain can be in. // Followings are the set of states of that beaconchain can be in.
@ -184,6 +185,7 @@ func BCItoBC(bci *BCInfo) *BeaconChain {
return bc return bc
} }
//SetSaveFile sets the filepath where beaconchain will be saved
func SetSaveFile(path string) { func SetSaveFile(path string) {
SaveFile = path SaveFile = path
} }

@ -11,6 +11,7 @@ if [ $(golint ./... | wc | awk '{print $1}') -gt 2 ]; then
exit 1 exit 1
fi fi
if [ -n "$(gofmt -l .)" ]; then if [ -n "$(gofmt -l .)" ]; then
echo "go fmt error"
echo "Go code is not formatted:" echo "Go code is not formatted:"
gofmt -d . gofmt -d .
exit 1 exit 1

Loading…
Cancel
Save