Skip to content

Commit c9951cb

Browse files
committed
code review fix
1 parent 57f388c commit c9951cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/board/os_image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func parseOSImageVersion(r io.Reader) (string, bool) {
5353
continue
5454
}
5555

56-
version := strings.Trim(value, `"' `)
56+
version := strings.TrimSpace(value)
5757
if version != "" {
5858
return version, true
5959
}

pkg/board/os_image_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func TestParseOSImageVersion(t *testing.T) {
7777
}{
7878
{
7979
name: "valid build id",
80-
input: "BUILD_ID=\"20251006-395\"\nVARIANT_ID=xfce",
80+
input: "BUILD_ID=20251006-395\nVARIANT_ID=xfce",
8181
expected: "20251006-395",
8282
found: true,
8383
},

0 commit comments

Comments
 (0)