2
0

Remove some now unused pgtype code

Most of this is in conversion, and I assume it became unused with some
of the v5 changes and refactors to a codec-based approach.

There are likely a few more cleanups to be made, but these ones seemed
easy and safe to start with.
This commit is contained in:
Dan McGee
2023-07-10 08:58:12 -05:00
committed by Jack Christensen
parent 0328d314ea
commit 507a9e9ad3
6 changed files with 2 additions and 440 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ package main
import (
"context"
"io/ioutil"
"io"
"log"
"net/http"
"os"
@@ -29,7 +29,7 @@ func getUrlHandler(w http.ResponseWriter, req *http.Request) {
func putUrlHandler(w http.ResponseWriter, req *http.Request) {
id := req.URL.Path
var url string
if body, err := ioutil.ReadAll(req.Body); err == nil {
if body, err := io.ReadAll(req.Body); err == nil {
url = string(body)
} else {
http.Error(w, "Internal server error", http.StatusInternalServerError)