Merge pull request #1622 from cfromknecht/hide-hodl-config-production

Hide hodl config production
This commit is contained in:
Olaoluwa Osuntokun 2018-07-25 20:33:16 -07:00 committed by GitHub
commit 098cd940e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

@ -1,3 +1,5 @@
// +build debug
package hodl
// Config is a struct enumerating the possible command line flags that are used

@ -0,0 +1,11 @@
// +build !debug
package hodl
// Config is an empty struct disabling command line hodl flags in production.
type Config struct{}
// Mask in production always returns MaskNone.
func (c *Config) Mask() Mask {
return MaskNone
}