Apply linter autofixes: internal/globals, log, models, pidlock, s3 (refs #61)

This commit is contained in:
2026-08-07 16:53:23 +00:00
parent b1451bb17e
commit bec964fc20
8 changed files with 63 additions and 13 deletions

View File

@@ -84,6 +84,7 @@ func getCaller(skip int) string {
if !ok {
return "unknown"
}
return fmt.Sprintf("%s:%d", filepath.Base(file), line)
}
@@ -94,6 +95,7 @@ func Fatal(msg string, args ...any) {
args = append(args, "caller", getCaller(2))
logger.Error(msg, args...)
}
os.Exit(1)
}
@@ -172,6 +174,7 @@ func With(args ...any) *slog.Logger {
if logger != nil {
return logger.With(args...)
}
return slog.Default()
}