fixed formatting
This commit is contained in:
parent
3b89a26265
commit
0a6b37ccab
@ -2,10 +2,10 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// App struct
|
||||
@ -41,7 +41,7 @@ func (a *App) GetModpacks() []string {
|
||||
fmt.Println(err.Error())
|
||||
}
|
||||
defer res.Body.Close()
|
||||
body , err := io.ReadAll(res.Body)
|
||||
body, err := io.ReadAll(res.Body)
|
||||
var modpacks []Modpack
|
||||
err = json.Unmarshal([]byte(body), &modpacks)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user