style(go): reformat embedded GraphQL queries with consistent indentation
Normalize the AniList GraphQL query strings in AniListFunctions.go
and AniListUserFunctions.go so every operation uses the same
indentation scheme: two-space steps, field and nested selection sets
uniformly indented, and keywords/arguments spaced consistently
(query ($search: String!), relations {, startDate {, etc.). Also
break the AniListBrowse parameter list onto its own trailing
parameter line for readability.
The queries themselves are unchanged - this is whitespace-only
normalization of the raw string literals, done with the new
project-local Neovim setup (.nvim.lua) that formats embedded GraphQL
via prettier. No behavior change; queries return identical results.
This commit is contained in:
+4
-8
@@ -374,7 +374,6 @@ func (a *App) AniListSearch(query string) (interface{}, error) {
|
|||||||
}
|
}
|
||||||
isAdult
|
isAdult
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
@@ -812,12 +811,8 @@ func (a *App) AniListDeleteEntry(mediaListId int) (DeleteAniListReturn, error) {
|
|||||||
Variables Variables `json:"variables"`
|
Variables Variables `json:"variables"`
|
||||||
}{
|
}{
|
||||||
Query: `
|
Query: `
|
||||||
mutation(
|
mutation ($id: Int) {
|
||||||
$id:Int,
|
DeleteMediaListEntry(id: $id) {
|
||||||
){
|
|
||||||
DeleteMediaListEntry(
|
|
||||||
id:$id,
|
|
||||||
){
|
|
||||||
deleted
|
deleted
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -895,7 +890,8 @@ func (a *App) AniListBrowse(
|
|||||||
tags []string,
|
tags []string,
|
||||||
excludedTags []string,
|
excludedTags []string,
|
||||||
minimumTagRank int,
|
minimumTagRank int,
|
||||||
sort []string) (AniListCurrentUserWatchList, error) {
|
sort []string,
|
||||||
|
) (AniListCurrentUserWatchList, error) {
|
||||||
// user := a.GetAniListLoggedInUser()
|
// user := a.GetAniListLoggedInUser()
|
||||||
type Variables struct {
|
type Variables struct {
|
||||||
Page int `json:"page"`
|
Page int `json:"page"`
|
||||||
|
|||||||
Reference in New Issue
Block a user