commit | 185b0cd3efcf16a4cc60ad95a42dbfa03b6a9ac1 | [log] [tgz] |
---|---|---|
author | David Why Use Two When One Will Do Presotto <p@google.com> | Fri Aug 22 12:12:31 2014 -0700 |
committer | David Why Use Two When One Will Do Presotto <p@google.com> | Fri Aug 22 12:12:31 2014 -0700 |
tree | 140c5f5ec7e8158b27e3642523cd31b4130a1c07 | |
parent | 1f3d113ac6045216cbef709e3af05594df3b38f1 [diff] |
Argh, forgot to upload last change before merging... Change-Id: Ifc5867409a75bda87d41e2d0932c2476406669f2
diff --git a/runtimes/google/naming/namespace/cache_test.go b/runtimes/google/naming/namespace/cache_test.go index 3a2df2f..1b6b9ca 100644 --- a/runtimes/google/naming/namespace/cache_test.go +++ b/runtimes/google/naming/namespace/cache_test.go
@@ -132,11 +132,8 @@ func disabled(ctls []naming.CacheCtl) bool { for _, c := range ctls { - switch v := c.(type) { - case naming.DisableCache: - if v { - return true - } + if v, ok := c.(naming.DisableCache); ok && bool(v) { + return true } } return false