diff options
author | Chris Stockton <chrisstocktonaz@gmail.com> | 2018-06-04 15:04:19 -0700 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-06-05 20:13:19 +0900 |
commit | 789e24695699d0fe8d0851b6ed005cf4912c7454 (patch) | |
tree | 068f0f1c7533d795eb7deace44d5035556dec086 /server/server.go | |
parent | 98e7b82ffc8a9bdfaccb1de3fc4c9cf71376d567 (diff) |
table: fix potential panics in tableKey
It is possible for a call from other Table methods for an interface that does
not match the tables route family to reach the type assertion and panic. This
change better reflects the intention of the code by checking the concrete type
using a type switch instead.
Diffstat (limited to 'server/server.go')
0 files changed, 0 insertions, 0 deletions