mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
The code looks like it does because it initially used string pointers; however, the version that landed used a regular string array, so we can just the = operator.
This commit is contained in:
parent
709fdb14de
commit
a91b9c4d92
1 changed files with 1 additions and 4 deletions
|
|
@ -287,10 +287,7 @@ func newSceneDraftInput(d SceneDraft, endpoint string) graphql.SceneDraftInput {
|
|||
if scene.Director != "" {
|
||||
draft.Director = &scene.Director
|
||||
}
|
||||
draft.Urls = make([]string, len(scene.URLs.List()))
|
||||
for i, v := range scene.URLs.List() {
|
||||
draft.Urls[i] = v
|
||||
}
|
||||
draft.Urls = scene.URLs.List()
|
||||
|
||||
if scene.Date != nil {
|
||||
v := scene.Date.String()
|
||||
|
|
|
|||
Loading…
Reference in a new issue