chore(code): cleaning

This commit is contained in:
2025-04-19 12:16:48 +01:00
parent 335d4403f1
commit 0324216753

View File

@ -37,7 +37,6 @@ func (w *DatabaseWriter) Write(p []byte) (n int, err error) {
}
func newDatabaseWriter(dbPool *sql.DB, imageId uuid.UUID) *DatabaseWriter {
io.MultiWriter()
return &DatabaseWriter{
dbPool: dbPool,
imageId: imageId,
@ -45,8 +44,7 @@ func newDatabaseWriter(dbPool *sql.DB, imageId uuid.UUID) *DatabaseWriter {
}
func createDbStdoutWriter(dbPool *sql.DB, imageId uuid.UUID) io.Writer {
dbWriter := newDatabaseWriter(dbPool, imageId)
return io.MultiWriter(os.Stdout, dbWriter)
return io.MultiWriter(os.Stdout, newDatabaseWriter(dbPool, imageId))
}
func createLogger(prefix string, writer io.Writer) *log.Logger {