From a95adf77b2cb92d45386b10b75cd102bf86fa1ae Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Sat, 23 Jan 2021 15:46:20 -0800 Subject: [PATCH] A little clean-up, no functional change. --- exec/load/syncdata.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/exec/load/syncdata.js b/exec/load/syncdata.js index b6350756f3..57bee047ed 100644 --- a/exec/load/syncdata.js +++ b/exec/load/syncdata.js @@ -1,18 +1,16 @@ -// $Id: syncdata.js,v 1.1 2018/01/17 02:45:48 rswindell Exp $ - // Find the correct/full internal code for the "syncdata" sub-board: +"use strict;" + function find(code) { if(!code) - code = "syncdata"; + code = "syncdata"; // Find the actual sub-code - var sub_code; for(var s in msg_area.sub) { - var sub = msg_area.sub[s]; - if(sub.code.substr(-code.length).toLowerCase() == code) - return sub.code; + if(s.substr(-code.length).toLowerCase() == code) + return s; } return false; } -this; \ No newline at end of file +this; -- GitLab