fix(outputs.remotefile): Resolve linter not checking error (#15615)

This commit is contained in:
Joshua Powers 2024-07-10 14:31:47 -06:00 committed by GitHub
parent bcfd0447a4
commit 6954798e38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -60,7 +60,9 @@ func (f *File) Init() error {
// Set defaults
if f.Remote.Empty() {
f.Remote.Set([]byte("local"))
if err := f.Remote.Set([]byte("local")); err != nil {
return fmt.Errorf("setting default remote failed: %w", err)
}
}
if f.FinalWriteTimeout <= 0 {