mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
15 lines
181 B
Go
15 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
|
|
}
|
|
}
|