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

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

Loading…
Cancel
Save