Refactor AMF encodevalue routine
authorTom Hughes <tom@compton.nu>
Wed, 21 Jun 2017 20:20:41 +0000 (21:20 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 21 Jun 2017 20:20:41 +0000 (21:20 +0100)
commitab3df6fc56a2a16c6af65ac429505d682153a60d
tree07e73c637adb46d1980de98d469236018c5792aa
parentd892a9be522729cf5f94c364aa70ce498f78b34e
Refactor AMF encodevalue routine

Simplify the switch, and raise an exception if we see an unexpected
type rather than just logging and then accidentally triggering a odd
error by returning true when a string is expected.
lib/potlatch.rb