mirror of
https://github.com/goharbor/harbor
synced 2025-04-08 03:22:25 +00:00
trim new line in the end of token file
This commit is contained in:
parent
7573d59624
commit
f57b9ae9d5
|
@ -16,6 +16,7 @@ package pms
|
|||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"strings"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -49,5 +50,5 @@ func (f *FileTokenReader) ReadToken() (string, error) {
|
|||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return string(data), nil
|
||||
return strings.TrimRight(string(data), "\n"), nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user