Re: [w3c/payment-handler] Only allows instrument.set() in active service worker (#224)

@rsolomakhin PTAL

I think other methods(`get()`, `delete()` and so on) no needs the check because instruments storage always empty before calling `set()`.

`get()` will resolve `undefined`.
`delete()` will resolve `false`.
`keys()` will resolve `empty array`.
`has()` will resolve `false`.
`clear()` is unmeaningful because the storage is already empty.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-handler/pull/224#issuecomment-426356514

Received on Tuesday, 2 October 2018 17:15:59 UTC