Skip to content

Commit

Permalink
fix up some more lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rogchap committed Sep 1, 2020
1 parent 7e8fa80 commit 090d517
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion internal/app/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (t *transportCreds) ClientHandshake(ctx context.Context, addr string, in ne
return out, auth, err
}

// BlockDIal isa wrapper to the regular grpc dial, but will block until the connection is made or an error occurs.
// BlockDial isa wrapper to the regular grpc dial, but will block until the connection is made or an error occurs.
func BlockDial(addr string, opts *model.WorkspaceOptions, statHandler stats.Handler) (*grpc.ClientConn, error) {
var conn *grpc.ClientConn
errc := make(chan error)
Expand Down
2 changes: 1 addition & 1 deletion internal/app/output_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ func formatInPayload(s *stats.InPayload) string {
sb.WriteString("« Wire Length: ")
sb.WriteString(strconv.Itoa(s.WireLength))
sb.WriteString("<br/>")
sb.WriteString(Recived Time: ")
sb.WriteString(Received Time: ")
sb.WriteString(s.RecvTime.String())
sb.WriteString("<p>")
return sb.String()
Expand Down
2 changes: 1 addition & 1 deletion internal/app/output_text.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This code has been copied from github.com/jhump/protoreflect/dynamic/text.go
// and ammended to format specifically for this app
// and amended to format specifically for this app

package app

Expand Down
1 change: 1 addition & 0 deletions internal/db/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"google.golang.org/protobuf/proto"
)

// Store is a wrapper to a DB to store data to disk
type Store struct {
db *badger.DB
}
Expand Down
2 changes: 0 additions & 2 deletions internal/model/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const (
FieldEnum
)

//go:generate qtmoc
// Field is a QObject that represents a Message field. A field can be a
// scaler value or a nested Message. Field values can also be repeated.
type Field struct {
Expand All @@ -40,7 +39,6 @@ type Field struct {
_ *KeyvalList `property:"enumListModel"`
}

//go:generate qtmoc
// Message is a QObject that represents the protobuf Message Descriptor.
type Message struct {
core.QAbstractListModel
Expand Down
4 changes: 1 addition & 3 deletions internal/model/keyval_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const (
KeyvalValRole
)

//go:generate qtmoc
// Keyval is a QObject for key/value
type Keyval struct {
core.QObject
Expand All @@ -20,8 +19,7 @@ type Keyval struct {
_ string `property:"val"`
}

//go:generate qtmoc
// LeyvalList is a QAbstractListModel of key/values
// KeyvalList is a QAbstractListModel of key/values
type KeyvalList struct {
core.QAbstractListModel

Expand Down
2 changes: 0 additions & 2 deletions internal/model/repeated_values.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const (
RepeatedValueMsgValue
)

//go:generate qtmoc
// RepeatedValue is a QObject that holds the value or Message value for a repeated field
type RepeatedValue struct {
core.QObject
Expand All @@ -23,7 +22,6 @@ type RepeatedValue struct {
_ *Message `property:msgValue"`
}

//go:generate qtmoc
// RepeatedValues is an QAbstractListModel that has the list of repeated values
type RepeatedValues struct {
core.QAbstractListModel
Expand Down
1 change: 0 additions & 1 deletion internal/model/string_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/therecipe/qt/core"
)

//go:generate qtmoc
// StringList is a generic QStringListModel
type StringList struct {
core.QStringListModel
Expand Down
3 changes: 1 addition & 2 deletions internal/model/workspace_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ package model

import "github.com/therecipe/qt/core"

//go:generate qtmoc
// WOrkspaceOptions is a QObject that holds the options for the Workspace
// WorkspaceOptions is a QObject that holds the options for the Workspace
type WorkspaceOptions struct {
core.QObject

Expand Down

0 comments on commit 090d517

Please sign in to comment.