overlay: use Itoa instead of Sprintf("%d")

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2024-08-20 22:52:02 +02:00
parent e5de483a85
commit 689ee947fa
No known key found for this signature in database
GPG Key ID: 67E38F7A8BA21772
1 changed files with 1 additions and 1 deletions

View File

@ -1575,7 +1575,7 @@ func (d *Driver) get(id string, disableShifting bool, options graphdriver.MountO
return "", fmt.Errorf("cannot mount a composefs layer as writeable")
}
dest := filepath.Join(composeFsLayersDir, fmt.Sprintf("%d", i))
dest := filepath.Join(composeFsLayersDir, strconv.Itoa(i))
if err := os.MkdirAll(dest, 0o700); err != nil {
return "", err
}