Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 08f9ba4

Browse files
committed
Fix incorrect int to string conversion
This line breaks compilation under go 1.15
1 parent f291f75 commit 08f9ba4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internals/cli/filemode/filemode.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
package filemode
33

44
import (
5+
"fmt"
56
"os"
67
"strconv"
78

@@ -47,7 +48,7 @@ func (m *FileMode) Set(value string) error {
4748

4849
// String implements the flag.Value interface.
4950
func (m FileMode) String() string {
50-
return string(m)
51+
return fmt.Sprint(m)
5152
}
5253

5354
// FileMode returns the file mode as an os.FileMode.

0 commit comments

Comments
 (0)