mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-18 16:16:25 +08:00
feat: optimize file operation interface (#2757)
* feat: optimize file operation interface * chore: fix typo Co-authored-by: Noah Hsu <i@nn.ci>
This commit is contained in:
5
pkg/utils/bool.go
Normal file
5
pkg/utils/bool.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package utils
|
||||
|
||||
func IsBool(bs ...bool) bool {
|
||||
return len(bs) > 0 && bs[0]
|
||||
}
|
||||
Reference in New Issue
Block a user