chore: Remove debugging code and comments

This commit is contained in:
Manuel 2023-08-29 18:30:00 +02:00
parent eca46fcadd
commit e35576fb3f
Signed by: Manuel
GPG key ID: 4085037435E1F07A
3 changed files with 2 additions and 53 deletions

View file

@ -6,7 +6,6 @@ import (
"github.com/jmoiron/sqlx"
_ "github.com/mattn/go-sqlite3"
ts "github.com/n0madic/twitter-scraper"
//"log"
"strconv"
)
@ -118,7 +117,6 @@ func (db *Database) PruneOldestTweets(channel string) error {
if err != nil {
return err
}
//log.Println(count)
if count > KeepTweets {
tx, err := db.Beginx()
@ -134,7 +132,6 @@ func (db *Database) PruneOldestTweets(channel string) error {
for rows.Next() {
var i int
err = rows.Scan(&i)
//log.Println(i)
if err != nil {
tx.Rollback()
return err