mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Ran formatter and fixed some lint issues
This commit is contained in:
@@ -20,10 +20,7 @@ func marshalToFile(filePath string, j interface{}) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := ioutil.WriteFile(filePath, data, 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return ioutil.WriteFile(filePath, data, 0755)
|
||||
}
|
||||
|
||||
func encode(j interface{}) ([]byte, error) {
|
||||
@@ -36,4 +33,4 @@ func encode(j interface{}) ([]byte, error) {
|
||||
}
|
||||
// Strip the newline at the end of the file
|
||||
return bytes.TrimRight(buffer.Bytes(), "\n"), nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user