Skip to content

Commit

Permalink
Fixed code formatting and import order using goimports (rs#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli authored and rs committed Jul 19, 2019
1 parent 77a1695 commit 42d101e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions internal/cbor/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ func (Encoder) AppendEndMarker(dst []byte) []byte {

// AppendObjectData takes an object in form of a byte array and appends to dst.
func (Encoder) AppendObjectData(dst []byte, o []byte) []byte {
// BeginMarker is present in the dst, which
// should not be copied when appending to existing data.
return append(dst, o[1:]...)
// BeginMarker is present in the dst, which
// should not be copied when appending to existing data.
return append(dst, o[1:]...)
}

// AppendArrayStart adds markers to indicate the start of an array.
Expand Down
5 changes: 3 additions & 2 deletions journald/journald.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ import (
"bytes"
"encoding/json"
"fmt"
"io"
"strings"

"github.com/coreos/go-systemd/journal"
"github.com/rs/zerolog"
"github.com/rs/zerolog/internal/cbor"
"io"
"strings"
)

const defaultJournalDPrio = journal.PriNotice
Expand Down

0 comments on commit 42d101e

Please sign in to comment.