aboutsummaryrefslogtreecommitdiffstats
path: root/test/rest_nodelete_resource.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-02-02 20:04:06 +0100
committerLoïc Hoguin <[email protected]>2012-02-02 20:04:06 +0100
commit062db956535907d33c430cd87e632d2c8f746240 (patch)
tree02c289183b748f89e0fee50dedeef732fb570f0e /test/rest_nodelete_resource.erl
parent096f40bf0887730572f44e688214162c0517d0aa (diff)
downloadcowboy-062db956535907d33c430cd87e632d2c8f746240.tar.gz
cowboy-062db956535907d33c430cd87e632d2c8f746240.tar.bz2
cowboy-062db956535907d33c430cd87e632d2c8f746240.zip
Apply a trick to the erlang:hibernate calls to suppress dialyzer warnings
Initially recommended by Magnus Klaar, the trick is to add a catch instruction before the erlang:hibernate/3 call so that Dialyzer thinks it will return, followed by the expected return value ('ok' for HTTP, 'closed' for websockets). This should be good enough until a real solution is found.
Diffstat (limited to 'test/rest_nodelete_resource.erl')
0 files changed, 0 insertions, 0 deletions