Skip to content

Commit

Permalink
* cosmetic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bnkai committed Dec 30, 2019
1 parent 188ce33 commit fc1cae6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ endif
build:
$(eval DATE := $(shell go run scripts/getDate.go))
$(eval GITHASH := $(shell git rev-parse --short HEAD))
$(SET) CGO_ENABLED=1 $(SEPARATOR) go build -mod=vendor -v -ldflags "-X 'github.com/stashapp/stash/pkg/api.buildstamp=$(DATE)' -X 'github.com/stashapp/stash/pkg/api.githash=$(GITHASH)' "
$(SET) CGO_ENABLED=1 $(SEPARATOR) go build -mod=vendor -v -ldflags "-X 'github.com/stashapp/stash/pkg/api.buildstamp=$(DATE)' -X 'github.com/stashapp/stash/pkg/api.githash=$(GITHASH)'"

install:
packr2 install
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/check_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func GetLatestVersion(shortHash bool) (string, error) {

branch, _, _ := GetVersion()
if branch == "" {
return "", fmt.Errorf("Stash doesn't have a version.Version check not supported.")
return "", fmt.Errorf("Stash doesn't have a version. Version check not supported.")
}

latestVersion := ""
Expand All @@ -55,7 +55,7 @@ func GetLatestVersion(shortHash bool) (string, error) {

data, err := ioutil.ReadAll(response.Body)
if err != nil {
return "", fmt.Errorf("Github API read respone failed: %s", err)
return "", fmt.Errorf("Github API read response failed: %s", err)
} else {
err := json.Unmarshal(data, &input)
if err != nil {
Expand Down

0 comments on commit fc1cae6

Please sign in to comment.