mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 19:31:46 +08:00
fix: improve code format (#2665)
* feat: replace io/ioutils pacakage with io/os package * fix: add missing error handling
This commit is contained in:
@ -119,6 +119,9 @@ func GetVersionInfo() (*VersionInfo, error) {
|
||||
}
|
||||
|
||||
cIter, err := r.Log(&git.LogOptions{From: ref.Hash()})
|
||||
if err != nil {
|
||||
return res, err
|
||||
}
|
||||
|
||||
commitOffset := 0
|
||||
version := ""
|
||||
|
Reference in New Issue
Block a user