mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
refactor: use a more modern writing style to simplify code (#3834)
Signed-off-by: deepdring <deepdrink@icloud.com>
This commit is contained in:
@@ -522,7 +522,7 @@ func HasTrailingWhitespace(b []byte) bool {
|
||||
}
|
||||
|
||||
// IntOpt turns a float64 setting to an int
|
||||
func IntOpt(opt interface{}) int {
|
||||
func IntOpt(opt any) int {
|
||||
return int(opt.(float64))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user