mirror of
https://github.com/stashapp/stash.git
synced 2025-12-16 20:07:05 +03: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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user