]> Cypherpunks.ru repositories - gocheese.git/blobdiff - json.go
Use an updated recfile library
[gocheese.git] / json.go
diff --git a/json.go b/json.go
index 94374801468cfd729b468a603dc2e19cc54173b1..00510a5a01b99dbaceaacefde1d3bdd5c3531df1 100644 (file)
--- a/json.go
+++ b/json.go
@@ -1,6 +1,6 @@
 /*
 GoCheese -- Python private package repository and caching proxy
-Copyright (C) 2019-2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2019-2022 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -20,7 +20,6 @@ package main
 import (
        "bytes"
        "encoding/json"
-       "io/ioutil"
        "log"
        "net/http"
        "os"
@@ -35,7 +34,7 @@ func getMD(pkgName, version string) (*PkgMeta, []*PkgReleaseInfo, error) {
        if err != nil {
                return nil, nil, err
        }
-       md, err := ioutil.ReadFile(filepath.Join(Root, pkgName, MDFile))
+       md, err := os.ReadFile(filepath.Join(Root, pkgName, MDFile))
        if err != nil {
                if !os.IsNotExist(err) {
                        return nil, nil, err