report: simplify x = x <op> y to x <op>= y (#716)

Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
This commit is contained in:
Iskander (Alex) Sharipov
2018-10-04 06:35:02 +03:00
committed by Kota Kanbe
parent ed5f98d6f0
commit d5c92cbcb3
3 changed files with 3 additions and 3 deletions

View File

@@ -129,7 +129,7 @@ func writeFile(path string, data []byte, perm os.FileMode) error {
if data, err = gz(data); err != nil {
return err
}
path = path + ".gz"
path += ".gz"
}
return ioutil.WriteFile(path, []byte(data), perm)
}