Skip to content

Commit

Permalink
*: run go fmt and sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
joelanford committed Jul 8, 2020
1 parent 1ae45eb commit aac0303
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ import (
"fmt"
"os"

"github.com/joelanford/go-apidiff/pkg/diff"
"github.com/spf13/cobra"

"github.com/joelanford/go-apidiff/pkg/diff"
)

func main() {
Expand Down
5 changes: 1 addition & 4 deletions pkg/diff/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ import (
"go/types"
"strings"

"gopkg.in/src-d/go-git.v4/plumbing"

"golang.org/x/exp/apidiff"
"golang.org/x/tools/go/packages"
"gopkg.in/src-d/go-git.v4"
"gopkg.in/src-d/go-git.v4/plumbing"
)

type Options struct {
Expand All @@ -45,8 +44,6 @@ func Run(opts Options) (*Diff, error) {
if err != nil {
return nil, fmt.Errorf("failed to get git worktree: %w", err)
}


if stat, err := wt.Status(); err != nil {
return nil, fmt.Errorf("failed to get git status: %w", err)
} else if !stat.IsClean() {
Expand Down

0 comments on commit aac0303

Please sign in to comment.