From 9c0040807a7fccb2a07edca9223d4f7311b42959 Mon Sep 17 00:00:00 2001 From: tomaioo Date: Sat, 23 May 2026 05:16:44 -0700 Subject: [PATCH 1/2] fix(security): 2 improvements across 2 files - Security: Syntax Error: Invalid return statement in Go file - Security: Undefined variable 'seen' in JavaScript file Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.com> --- 3sum/tedkimdev.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3sum/tedkimdev.go b/3sum/tedkimdev.go index 10e7e8bf69..6e469f1f92 100644 --- a/3sum/tedkimdev.go +++ b/3sum/tedkimdev.go @@ -48,5 +48,5 @@ func threeSum(nums []int) [][]int { filteredResult = append(filteredResult, k[0:len(k)]) } - return result.keys() + return filteredResult } From 6c644e1dfec0319f34aa7c14234bb8660b01669f Mon Sep 17 00:00:00 2001 From: tomaioo Date: Sat, 23 May 2026 05:16:45 -0700 Subject: [PATCH 2/2] fix(security): 2 improvements across 2 files - Security: Syntax Error: Invalid return statement in Go file - Security: Undefined variable 'seen' in JavaScript file Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.com> --- 3sum/lhc0506.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3sum/lhc0506.js b/3sum/lhc0506.js index d445866499..744e7d28ca 100644 --- a/3sum/lhc0506.js +++ b/3sum/lhc0506.js @@ -3,7 +3,7 @@ * @return {number[][]} */ var threeSum = function(nums) { - const result = []; + const result = []; const seen = new Set(); const numsMap = {}; nums.forEach((num, index) => {