Skip to content

Commit

Permalink
Run gofumpt on the codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Jan 6, 2025
1 parent 2686488 commit 7e8e669
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions converter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
)

func Test_ClampUint8(t *testing.T) {
var testData = []struct {
testData := []struct {
in int32
expected uint8
}{
Expand All @@ -24,7 +24,7 @@ func Test_ClampUint8(t *testing.T) {
}

func Test_ClampUint16(t *testing.T) {
var testData = []struct {
testData := []struct {
in int64
expected uint16
}{
Expand Down
4 changes: 2 additions & 2 deletions nearest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package resize
import "testing"

func Test_FloatToUint8(t *testing.T) {
var testData = []struct {
testData := []struct {
in float32
expected uint8
}{
Expand All @@ -38,7 +38,7 @@ func Test_FloatToUint8(t *testing.T) {
}

func Test_FloatToUint16(t *testing.T) {
var testData = []struct {
testData := []struct {
in float32
expected uint16
}{
Expand Down
4 changes: 2 additions & 2 deletions resize.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ THIS SOFTWARE.
// utilized in the computations.
//
// Example:
// imgResized := resize.Resize(1000, 0, imgOld, resize.MitchellNetravali)
//
// imgResized := resize.Resize(1000, 0, imgOld, resize.MitchellNetravali)
package resize

import (
Expand Down Expand Up @@ -586,7 +587,6 @@ func resizeNearest(width, height uint, scaleX, scaleY float64, img image.Image,
wg.Wait()
return result
}

}

// Calculates scaling factors using old and new image dimensions.
Expand Down
1 change: 1 addition & 0 deletions ycc_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build go1.5
// +build go1.5

/*
Expand Down

0 comments on commit 7e8e669

Please sign in to comment.