Преглед на файлове

Remove unnecessary use of fmt.Sprintf

DarthSim преди 5 години
родител
ревизия
17af7add23
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      processing_options.go

+ 1 - 1
processing_options.go

@@ -1132,7 +1132,7 @@ func parsePath(ctx context.Context, r *http.Request) (context.Context, error) {
 	}
 
 	if !isAllowedSource(imageURL) {
-		return ctx, newError(404, fmt.Sprintf("Invalid source"), msgInvalidSource)
+		return ctx, newError(404, "Invalid source", msgInvalidSource)
 	}
 
 	ctx = context.WithValue(ctx, imageURLCtxKey, imageURL)