Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #315 from vania-pooh/master
Browse files Browse the repository at this point in the history
Fixed style and lint issues
  • Loading branch information
vania-pooh authored Dec 19, 2017
2 parents 7f774e7 + a7f708b commit f225387
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion selenoid.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit f225387

Please sign in to comment.