fix: resolve gosec integer overflow and unconvert issues

- Fix G115 integer overflow by converting uint32 to int comparison
- Remove unnecessary int() conversions for syscall constants
- syscall.Stdin/Stderr/Stdout are already int type
This commit is contained in:
2025-06-20 09:50:00 -07:00
parent 9e35bf21a3
commit abcc7b6c3a
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ func InitDebugLogging() {
_, _, _ = syscall.Syscall(syscall.SYS_FCNTL, os.Stderr.Fd(), syscall.F_SETFL, syscall.O_SYNC)
// Check if STDERR is a TTY
isTTY := term.IsTerminal(int(syscall.Stderr))
isTTY := term.IsTerminal(syscall.Stderr)
var handler slog.Handler
if isTTY {