From a7f708bb29d275f0d7f2ccad6ccdd90056af1178 Mon Sep 17 00:00:00 2001 From: Ivan Krutov Date: Tue, 19 Dec 2017 14:12:14 +0300 Subject: [PATCH] Fixed style and lint issues --- main.go | 4 ++-- selenoid.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index b041b0ee..79c161b4 100644 --- a/main.go +++ b/main.go @@ -29,8 +29,8 @@ import ( type memLimit int64 -func (m *memLimit) String() string { - return units.HumanSize(float64(*m)) +func (limit *memLimit) String() string { + return units.HumanSize(float64(*limit)) } func (limit *memLimit) Set(s string) error { diff --git a/selenoid.go b/selenoid.go index 9f271bb9..9aefdb72 100644 --- a/selenoid.go +++ b/selenoid.go @@ -400,7 +400,7 @@ func fileUpload(w http.ResponseWriter, r *http.Request) { return } if len(z.File) != 1 { - jsonError(w, fmt.Sprintf("Expected there to be only 1 file. There were: %s", len(z.File)), http.StatusBadRequest) + jsonError(w, fmt.Sprintf("Expected there to be only 1 file. There were: %d", len(z.File)), http.StatusBadRequest) return } file := z.File[0]