From 39df42b675ec82c2eb4399b18f18d50df0114825 Mon Sep 17 00:00:00 2001 From: "Sascha L. Teichmann" Date: Tue, 21 Jul 2015 23:35:10 +0200 Subject: [PATCH] Removed another use of fmt.Printf. --- common/basetilecreator.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/basetilecreator.go b/common/basetilecreator.go index 0e7ffca..83fb8a2 100644 --- a/common/basetilecreator.go +++ b/common/basetilecreator.go @@ -5,7 +5,6 @@ package common import ( - "fmt" "image/color" "log" "path/filepath" @@ -121,7 +120,7 @@ func (btc *BaseTileCreator) CreateTile(x, z int16, i, j int) error { 16, 16, (tileWidth-2)*16, (tileHeight-2)*16, btc.colors, color.RGBA{R: 0xff, G: 0xff, B: 0xff, A: 0xff}) - path := filepath.Join(btc.baseDir, strconv.Itoa(i), fmt.Sprintf("%d.png", j)) + path := filepath.Join(btc.baseDir, strconv.Itoa(i), strconv.Itoa(j)+".png") log.Printf("Writing (%d, %d) to file %s\n", x, z, path)