Skip to content

Commit

Permalink
re-put gofmt, simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicalTux committed Apr 10, 2020
1 parent 98dbb57 commit aab7948
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Check formatting
run: |
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
gofmt -s -d .
exit 1
fi
- name: Get dependencies
run: |
go get -v -t -d ./...
Expand Down
2 changes: 1 addition & 1 deletion image_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func NewWriter() (*ImageWriter, error) {
root: make(map[string]interface{}),
Primary: Primary,
vd: []*volumeDescriptor{
&volumeDescriptor{
{
Header: volumeDescriptorHeader{
Type: volumeTypePrimary,
Identifier: standardIdentifierBytes,
Expand Down

0 comments on commit aab7948

Please sign in to comment.