Skip to content

Commit 9bc76eb

Browse files
gofmt
1 parent 5c043be commit 9bc76eb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

v2/sonyflake.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func lower16BitPrivateIP(interfaceAddrs types.InterfaceAddrs) (int, error) {
198198
}
199199

200200
func (sf *Sonyflake) ToTime(id int64) time.Time {
201-
return time.Unix(0, (sf.startTime+Time(id)) * sf.timeUnit)
201+
return time.Unix(0, (sf.startTime+Time(id))*sf.timeUnit)
202202
}
203203

204204
// Time returns the Sonyflake time when the given ID was generated.

v2/sonyflake_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func TestNextID_ReturnsError(t *testing.T) {
234234
func TestToTime(t *testing.T) {
235235
start := time.Now()
236236
sf := newSonyflake(t, Settings{
237-
TimeUnit: time.Millisecond,
237+
TimeUnit: time.Millisecond,
238238
StartTime: start,
239239
})
240240

0 commit comments

Comments
 (0)