Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed Dec 15, 2022
1 parent 4493492 commit 4568157
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pkg/backend/httpstate/client/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ func (c *marshalUntypedDeployment) writeToStream(stream *jsoniter.Stream) error
stream.WriteInt(3)
stream.WriteMore() // writes `,`
stream.WriteObjectField("deployment")
c.writeDeploymentV3(stream)
err := c.writeDeploymentV3(stream)
if err != nil {
return err
}
stream.WriteObjectEnd() // writes `}`
return stream.Flush()
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/backend/httpstate/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestCloudSnapshotPersisterUseOfDiffProtocol(t *testing.T) {
t.Cleanup(func() {
bytes, err := json.MarshalIndent(expectations, "", " ")
require.NoError(t, err)
err = os.WriteFile(expectationsFile, bytes, 0700)
err = os.WriteFile(expectationsFile, bytes, 0600)
require.NoError(t, err)
})
} else {
Expand Down

0 comments on commit 4568157

Please sign in to comment.