Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion time.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import (
"database/sql/driver"
"encoding/json"
"errors"

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / sqlite (1.21, macos-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / sqlite (1.22, macos-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / sqlite (1.21, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / sqlite (1.20, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / sqlite (1.22, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / postgres (postgres:10, 1.22, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / sqlserver (1.21, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / mysql (mysql:latest, 1.21, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / postgres (postgres:10, 1.21, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / sqlserver (1.22, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / mysql (mysql:latest, 1.22, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / mysql (mysql:5.7, 1.21, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / mysql (mysql:latest, 1.20, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / postgres (postgres:latest, 1.22, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / postgres (postgres:latest, 1.21, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / mysql (mysql:5.7, 1.20, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / mariadb (mariadb:latest, 1.21, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / postgres (postgres:latest, 1.20, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / sqlserver (1.20, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / mysql (mysql:5.7, 1.22, ubuntu-latest)

"errors" imported and not used

Check failure on line 6 in time.go

View workflow job for this annotation

GitHub Actions / postgres (postgres:11, 1.20, ubuntu-latest)

"errors" imported and not used
"fmt"
"strings"
"time"
Expand Down Expand Up @@ -60,7 +60,7 @@
case time.Time:
t.setFromTime(v)
default:
return errors.New(fmt.Sprintf("failed to scan value: %v", v))
return fmt.Errorf("failed to scan value: %v", v)
}

return nil
Expand Down
Loading