File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,24 +24,24 @@ func toBinaryDateTime(t time.Time) ([]byte, error) {
24
24
25
25
if nanosec > 0 {
26
26
buf .WriteByte (byte (11 ))
27
- binary .Write (& buf , binary .LittleEndian , uint16 (year ))
27
+ _ = binary .Write (& buf , binary .LittleEndian , uint16 (year ))
28
28
buf .WriteByte (byte (month ))
29
29
buf .WriteByte (byte (day ))
30
30
buf .WriteByte (byte (hour ))
31
31
buf .WriteByte (byte (min ))
32
32
buf .WriteByte (byte (sec ))
33
- binary .Write (& buf , binary .LittleEndian , uint32 (nanosec / 1000 ))
33
+ _ = binary .Write (& buf , binary .LittleEndian , uint32 (nanosec / 1000 ))
34
34
} else if hour > 0 || min > 0 || sec > 0 {
35
35
buf .WriteByte (byte (7 ))
36
- binary .Write (& buf , binary .LittleEndian , uint16 (year ))
36
+ _ = binary .Write (& buf , binary .LittleEndian , uint16 (year ))
37
37
buf .WriteByte (byte (month ))
38
38
buf .WriteByte (byte (day ))
39
39
buf .WriteByte (byte (hour ))
40
40
buf .WriteByte (byte (min ))
41
41
buf .WriteByte (byte (sec ))
42
42
} else {
43
43
buf .WriteByte (byte (4 ))
44
- binary .Write (& buf , binary .LittleEndian , uint16 (year ))
44
+ _ = binary .Write (& buf , binary .LittleEndian , uint16 (year ))
45
45
buf .WriteByte (byte (month ))
46
46
buf .WriteByte (byte (day ))
47
47
}
You can’t perform that action at this time.
0 commit comments