Skip to content

Commit fbf1b0e

Browse files
committed
Rename AsBytes to standard Bytes
1 parent c9b9185 commit fbf1b0e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/ota/version.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ type Version struct {
3232
PayloadBuildNum uint32
3333
}
3434

35-
// AsBytes builds a 8 byte length representation of the Version Struct for the OTA update.
36-
func (v *Version) AsBytes() []byte {
35+
// Bytes builds a 8 byte length representation of the Version Struct for the OTA update.
36+
func (v *Version) Bytes() []byte {
3737
version := []byte{0, 0, 0, 0, 0, 0, 0, 0}
3838

3939
// Set compression

internal/ota/version_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func TestVersionWithCompressionEnabled(t *testing.T) {
3434
}
3535

3636
expected := []byte{0, 0, 0, 0, 0, 0, 0, 0x40}
37-
actual := version.AsBytes()
37+
actual := version.Bytes()
3838

3939
// create a tabwriter for formatting the output
4040
w := new(tabwriter.Writer)

0 commit comments

Comments
 (0)