Skip to content
Permalink
Browse files

dashboard/app: fix unused variable warning

isAppEngineTest is meant to be used in prod configs.
  • Loading branch information...
dvyukov committed Feb 17, 2019
1 parent 3636a62 commit 6a4471c2e5cb34c20d44763697cd13138f3f2c86
Showing with 3 additions and 1 deletion.
  1. +2 −0 dashboard/app/aetest.go
  2. +1 −1 dashboard/app/config.go
@@ -5,4 +5,6 @@

package dash

// isAppEngineTest is meant to be used in prod config to either
// load the config or just check its correctness.
const isAppEngineTest = true
@@ -161,7 +161,7 @@ var config *GlobalConfig

func init() {
// Prevents gometalinter from considering everything as dead code.
if false {
if false && isAppEngineTest {
installConfig(nil)
}
}

0 comments on commit 6a4471c

Please sign in to comment.
You can’t perform that action at this time.