From 3f063b6a2f4ae39cc19b3fa6aa1b4ce84a79716e Mon Sep 17 00:00:00 2001 From: Tomas Aparicio Date: Sat, 11 Apr 2015 15:04:13 +0200 Subject: [PATCH] refactor: comparse as pure string --- resize.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resize.go b/resize.go index 53880c9..0de04ae 100644 --- a/resize.go +++ b/resize.go @@ -199,12 +199,12 @@ func rotateImage(image *C.struct__VipsImage, o Options) (*C.struct__VipsImage, e } func watermakImage(image *C.struct__VipsImage, w Watermark) (*C.struct__VipsImage, error) { - if len(w.Text) == 0 { + if w.Text == "" { return image, nil } // Defaults - if len(w.Font) == 0 { + if w.Font == "" { w.Font = "sans 10" } if w.Width == 0 {