Skip to content

Commit

Permalink
chore(fmt): run gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
b5 committed Mar 5, 2020
1 parent 1710e03 commit 140a7b4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions base/friendly/friendly.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func DiffDescriptions(deltas []*deepdiff.Delta, stats *deepdiff.Stats) (string,
shortTitle = fmt.Sprintf("%s %s", compName, changes.Rows[0])
} else if len(changes.Rows) == 0 && compName == "transform" {
// TODO (b5) - this is a hack to make TestSaveTransformWithoutChanges
// in the cmd package pass. We're getting to this stage with 0 rows of
// in the cmd package pass. We're getting to this stage with 0 rows of
// changes, which is making msg & title not-empty, which is in turn allowing
// a commit b/c it looks like a change. ideally we don't make it here at all,
// but we DEFINITELY need a better hueristic for dsfs.CreateDataset's
Expand Down Expand Up @@ -117,7 +117,7 @@ func DiffDescriptions(deltas []*deepdiff.Delta, stats *deepdiff.Stats) (string,

const dtReplace = deepdiff.Operation("replace")

// preprocess makes delta lists easier to work with, by combining operations
// preprocess makes delta lists easier to work with, by combining operations
// when possible & removing unwanted paths
func preprocess(deltas deepdiff.Deltas, path string) deepdiff.Deltas {
build := make([]*deepdiff.Delta, 0, len(deltas))
Expand Down
10 changes: 5 additions & 5 deletions cmd/diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"testing"
"time"

"github.com/google/go-cmp/cmp"
"github.com/qri-io/ioes"
"github.com/qri-io/qri/base/dsfs"
"github.com/google/go-cmp/cmp"
)

func TestDiffComplete(t *testing.T) {
Expand Down Expand Up @@ -100,19 +100,19 @@ func TestDiffRun(t *testing.T) {
if err != nil {
t.Fatalf("case %s, error creating dataset request: %s", c.description, err)
}

opt := c.opt
opt.IOStreams = streams
opt.DatasetRequests = dsr

if err = opt.Run(); err != nil {
t.Fatalf("case %s unexpected error: %s", c.description, err)
}

if diff := cmp.Diff(out.String(), c.stdout); diff != "" {
t.Errorf("output mismatch (-want +got):\n%s", diff)
}

ioReset(in, out, errs)
})
}
Expand Down
2 changes: 1 addition & 1 deletion logbook/logbook.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ type Book struct {
fsLocation string
fs qfs.Filesystem

listener func(*Action)
listener func(*Action)
}

// NewBook creates a book with a user-provided logstore
Expand Down

0 comments on commit 140a7b4

Please sign in to comment.