Skip to content

Commit

Permalink
🚨 Fix linter warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Norbert Dzikowski <[email protected]>
  • Loading branch information
Norbert Dzikowski committed Sep 24, 2020
1 parent fa62299 commit 96c15ec
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion channel/allocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ type (
Bals []Bal
}

// Bal is a single asset's balance
// Bal is a single asset's balance.
Bal = *big.Int

// Asset identifies an asset. E.g., it may be the address of the multi-sig
Expand Down
6 changes: 3 additions & 3 deletions channel/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ import (
)

type (
// StateTransitionError happens in case of an invalid channel state transition
// StateTransitionError happens in case of an invalid channel state transition.
StateTransitionError struct {
ID ID
}

// ActionError happens if an invalid action is applied to a channel state
// ActionError happens if an invalid action is applied to a channel state.
ActionError struct {
ID ID
}

// PhaseTransitionError happens in case of an invalid channel machine phase
// transition
// transition.
PhaseTransitionError struct {
ID ID
current Phase
Expand Down
4 changes: 2 additions & 2 deletions channel/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ import (
type Index = uint16

type (
// Phase is a phase of the channel pushdown automaton
// Phase is a phase of the channel pushdown automaton.
Phase uint8

// PhaseTransition represents a transition between two phases
// PhaseTransition represents a transition between two phases.
PhaseTransition struct {
From, To Phase
}
Expand Down
2 changes: 1 addition & 1 deletion client/test/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type (
bals []channel.Bal // independent tracking of channel balance for testing
}

// A handlerRes encapsulates the result of a channel handling request
// A handlerRes encapsulates the result of a channel handling request.
handlerRes struct {
up client.ChannelUpdate
err error
Expand Down
2 changes: 1 addition & 1 deletion log/levellified.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const (
// os.Exit(1) or similar. It it the highest level of severity.
FatalLevel Level = iota - defaultLogLevelShift // -3: default level WarnLevel
// PanicLevel calls the wrapped logger's Panic method with the prefix "[panic]".
// The wrapped logger should usually call panic with the given message
// The wrapped logger should usually call panic with the given message.
PanicLevel
// ErrorLevel calls the wrapped logger's Print method with the prefix "[error]".
ErrorLevel
Expand Down

0 comments on commit 96c15ec

Please sign in to comment.