Skip to content

Commit

Permalink
qualityのデフォルトが0になってしまっていたので修正
Browse files Browse the repository at this point in the history
Signed-off-by: drumato <drumato@pepabo.com>
  • Loading branch information
Drumato committed Apr 10, 2024
1 parent f3158ac commit 6c30cc9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ func main() {
ServerURL: orgScheme + "://" + orgHost,
}

// defaulting
ph.Quality = 90
if q := os.Getenv("OYAKI_QUALITY"); q != "" {
quality, err := strconv.Atoi(q)
if err != nil {
// defaulting
quality = 90
if err == nil {
ph.Quality = quality
}
ph.Quality = quality
}

logger.InfoContext(ctx, "starting oyaki", "version", getVersion())
Expand Down

0 comments on commit 6c30cc9

Please sign in to comment.