mirror of
https://github.com/ferdzo/fs.git
synced 2026-04-05 20:06:25 +00:00
Compare commits
2 Commits
cfec3afb49
...
9abffd056e
| Author | SHA1 | Date | |
|---|---|---|---|
| 9abffd056e | |||
| cd7a1b4956 |
@@ -763,8 +763,8 @@ func trimFloat(v float64) string {
|
||||
|
||||
func escapeLabelValue(value string) string {
|
||||
value = strings.ReplaceAll(value, `\`, `\\`)
|
||||
value = strings.ReplaceAll(value, "\n", `\\n`)
|
||||
value = strings.ReplaceAll(value, `"`, `\\"`)
|
||||
value = strings.ReplaceAll(value, "\n", `\n`)
|
||||
value = strings.ReplaceAll(value, `"`, `\"`)
|
||||
return value
|
||||
}
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ func (bs *BlobStore) saveBlob(chunkID string, data []byte) error {
|
||||
|
||||
if err := os.Rename(tmpPath, fullPath); err != nil {
|
||||
if _, statErr := os.Stat(fullPath); statErr == nil {
|
||||
:q success = true
|
||||
success = true
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user