From d8ef9ba0ec222de5f5215fc2b19968ab367d62bc Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Fri, 29 Nov 2019 18:11:49 +0300 Subject: [PATCH] cli/smartcontract: make smartContractTmpl a constant As it can be a constant and should be a constant. --- cli/smartcontract/smart_contract.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/smartcontract/smart_contract.go b/cli/smartcontract/smart_contract.go index 4b7c2877c..488a62a33 100644 --- a/cli/smartcontract/smart_contract.go +++ b/cli/smartcontract/smart_contract.go @@ -33,7 +33,7 @@ var ( errFileExist = errors.New("A file with given smart-contract name already exists") ) -var ( +const ( // smartContractTmpl is written to a file when used with `init` command. // %s is parsed to be the smartContractName smartContractTmpl = `package %s