code refactor
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-01-21 14:40:37 +11:00
parent 3cdf368bc4
commit 0a2c529111
2 changed files with 192 additions and 136 deletions

View File

@@ -3,11 +3,9 @@ package tasks
import (
"context"
"database/sql"
"encoding/json"
"errors"
"fmt"
"log/slog"
"runtime"
"strings"
"time"
"vctp/db/queries"
@@ -402,6 +400,7 @@ func (c *CronTask) AddVmToInventory(vmObject *mo.VirtualMachine, vc *vcenter.Vce
return nil
}
/*
// prettyPrint comes from https://gist.github.com/sfate/9d45f6c5405dc4c9bf63bf95fe6d1a7c
func prettyPrint(args ...interface{}) {
var caller string
@@ -429,3 +428,4 @@ func prettyPrint(args ...interface{}) {
fmt.Printf("%s%s\n", prefix, string(s))
}
}
*/