Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
steebchen committed Nov 5, 2023
1 parent 9f2b8a4 commit 5f381f5
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 11 deletions.
5 changes: 3 additions & 2 deletions binaries/binaries.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package binaries
import (
"compress/gzip"
"fmt"
"github.com/steebchen/prisma-client-go/binaries/platform"
"github.com/steebchen/prisma-client-go/logger"
"io"
"log"
"net/http"
"os"
"path"
"path/filepath"

"github.com/steebchen/prisma-client-go/binaries/platform"
"github.com/steebchen/prisma-client-go/logger"
)

// PrismaVersion is a hardcoded version of the Prisma CLI.
Expand Down
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package cli

import (
"fmt"
"github.com/steebchen/prisma-client-go/binaries/platform"
"os"
"os/exec"
"path"

"github.com/steebchen/prisma-client-go/binaries"
"github.com/steebchen/prisma-client-go/binaries/platform"
"github.com/steebchen/prisma-client-go/logger"
)

Expand Down
3 changes: 1 addition & 2 deletions engine/lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
"github.com/steebchen/prisma-client-go/generator"
"log"
"os"
"os/exec"
Expand All @@ -15,10 +14,10 @@ import (
"time"

"github.com/joho/godotenv"

"github.com/steebchen/prisma-client-go/binaries"
"github.com/steebchen/prisma-client-go/binaries/platform"
"github.com/steebchen/prisma-client-go/binaries/unpack"
"github.com/steebchen/prisma-client-go/generator"
"github.com/steebchen/prisma-client-go/logger"
)

Expand Down
1 change: 1 addition & 0 deletions engine/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/base64"
"encoding/json"
"fmt"

"github.com/steebchen/prisma-client-go/logger"
)

Expand Down
2 changes: 1 addition & 1 deletion generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package generator

import (
"encoding/json"
"github.com/steebchen/prisma-client-go/logger"
"os"
"path"
"strings"

"github.com/steebchen/prisma-client-go/generator/ast/dmmf"
"github.com/steebchen/prisma-client-go/generator/ast/transform"
"github.com/steebchen/prisma-client-go/generator/types"
"github.com/steebchen/prisma-client-go/logger"
)

// Root describes the generator output root.
Expand Down
5 changes: 3 additions & 2 deletions test/databases/sqlite/checks_nested/default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package raw

import (
"context"
"testing"

"github.com/steebchen/prisma-client-go/test"
"github.com/steebchen/prisma-client-go/test/databases/sqlite/checks_nested/prisma"
db "github.com/steebchen/prisma-client-go/test/databases/sqlite/checks_nested/prisma"
"github.com/stretchr/testify/assert"
"testing"
)

type cx = context.Context
Expand Down
2 changes: 1 addition & 1 deletion test/databases/sqlite/checks_path/default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package db

import (
"context"
"github.com/stretchr/testify/assert"
"testing"

"github.com/steebchen/prisma-client-go/test"
"github.com/stretchr/testify/assert"
)

type cx = context.Context
Expand Down
2 changes: 1 addition & 1 deletion test/features/composite_id/composite_id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package db

import (
"context"
"github.com/stretchr/testify/assert"
"testing"

"github.com/steebchen/prisma-client-go/test"
"github.com/stretchr/testify/assert"
)

type cx = context.Context
Expand Down
2 changes: 1 addition & 1 deletion test/misc/config/default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package raw

import (
"context"
"github.com/stretchr/testify/assert"
"testing"

"github.com/steebchen/prisma-client-go/test"
"github.com/stretchr/testify/assert"
)

func TestConfig(t *testing.T) {
Expand Down

0 comments on commit 5f381f5

Please sign in to comment.