Skip to content

Commit

Permalink
fix: some typos (#6283)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill authored Apr 2, 2024
1 parent 0e86036 commit 2880ed7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/net/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func GetRangedHttpReader(readCloser io.ReadCloser, offset, length int64) (io.Rea
length_int = int(length)

if offset > 100*1024*1024 {
log.Warnf("offset is more than 100MB, if loading data from internet, high-latency and wasting of bandwith is expected")
log.Warnf("offset is more than 100MB, if loading data from internet, high-latency and wasting of bandwidth is expected")
}

if _, err := io.Copy(io.Discard, io.LimitReader(readCloser, offset)); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion server/handles/ssologin.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func SSOLoginCallback(c *gin.Context) {
}
userID := utils.Json.Get(resp.Body(), idField).ToString()
if utils.SliceContains([]string{"", "0"}, userID) {
common.ErrorResp(c, errors.New("error occured"), 400)
common.ErrorResp(c, errors.New("error occurred"), 400)
return
}
if argument == "get_sso_id" {
Expand Down

0 comments on commit 2880ed7

Please sign in to comment.