From 9dad822ee8a87332060b210f64b2dd21567ef717 Mon Sep 17 00:00:00 2001 From: Tom Pusateri Date: Fri, 5 Jan 2018 14:02:39 -0500 Subject: [PATCH] Fix return code error and make lint happy. --- rcodes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rcodes.js b/rcodes.js index 4ca9db6..492b2f3 100644 --- a/rcodes.js +++ b/rcodes.js @@ -22,7 +22,7 @@ exports.toString = function (rcode) { case 14: return 'RCODE_14' case 15: return 'RCODE_15' } - return 'RCODE_' + type + return 'RCODE_' + rcode } exports.toRcode = function (code) { @@ -45,4 +45,4 @@ exports.toRcode = function (code) { case 'RCODE_15': return 15 } return 0 -} \ No newline at end of file +}