Skip to content

Commit 5a1838e

Browse files
fix: inline expiry check
1 parent 6ccdeee commit 5a1838e

3 files changed

Lines changed: 1 addition & 48 deletions

File tree

cmd/rofl/machine/expiry.go

Lines changed: 0 additions & 8 deletions
This file was deleted.

cmd/rofl/machine/expiry_test.go

Lines changed: 0 additions & 39 deletions
This file was deleted.

cmd/rofl/machine/show.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ var showCmd = &cobra.Command{
8888
}
8989

9090
paidUntil := time.Unix(int64(insDsc.PaidUntil), 0)
91-
expired := isMachineRentalExpired(paidUntil, time.Now())
91+
expired := !time.Now().Before(paidUntil)
9292

9393
fmt.Printf("Name: %s\n", machineName)
9494
fmt.Printf("Provider: %s\n", insDsc.Provider)

0 commit comments

Comments
 (0)