mirror of
https://github.com/stashapp/stash.git
synced 2026-05-02 20:03:03 +02:00
14 lines
181 B
Go
14 lines
181 B
Go
package graphql
|
|
|
|
func OneShot(resp *Response) func() *Response {
|
|
var oneshot bool
|
|
|
|
return func() *Response {
|
|
if oneshot {
|
|
return nil
|
|
}
|
|
oneshot = true
|
|
|
|
return resp
|
|
}
|
|
}
|