aboutsummaryrefslogtreecommitdiff
path: root/go/images/resizing.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2014-07-20 23:12:49 -0700
committerChris Lu <chris.lu@gmail.com>2014-07-20 23:12:49 -0700
commit77fd5ecd982ddb32affd6911b4808e4bf5d28dc8 (patch)
tree4f621ef75363f0f4703016baeb83a50aa0f8437b /go/images/resizing.go
parent8e7f08d04daa6c80a1790e8d86bad149e9fb14b6 (diff)
downloadseaweedfs-77fd5ecd982ddb32affd6911b4808e4bf5d28dc8.tar.xz
seaweedfs-77fd5ecd982ddb32affd6911b4808e4bf5d28dc8.zip
Add /admin/mv to move a file or a folder
Diffstat (limited to 'go/images/resizing.go')
-rw-r--r--go/images/resizing.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/images/resizing.go b/go/images/resizing.go
index 7e21db70b..08a1e15d2 100644
--- a/go/images/resizing.go
+++ b/go/images/resizing.go
@@ -23,8 +23,8 @@ func Resized(ext string, data []byte, width, height int) (resized []byte, w int,
} else {
dstImage = imaging.Resize(srcImage, width, height, imaging.Lanczos)
}
- }else{
- return data, bounds.Dx(), bounds.Dy()
+ } else {
+ return data, bounds.Dx(), bounds.Dy()
}
var buf bytes.Buffer
switch ext {