Skip to content

Commit 83ee7ff

Browse files
committed
fix lint
1 parent e368781 commit 83ee7ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/backend/pktvisor/pktvisor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ func (p *pktvisorBackend) Configure(logger *zap.Logger, repo policies.PolicyRepo
287287
}
288288

289289
// Write config to temp file
290-
if err := os.WriteFile(tmpFile.Name(), yamlData, 0644); err != nil {
290+
if err := os.WriteFile(tmpFile.Name(), yamlData, 0o644); err != nil {
291291
if rerr := os.Remove(tmpFile.Name()); rerr != nil {
292292
p.logger.Error("failed to remove temp config file", zap.String("file", tmpFile.Name()), zap.Error(rerr))
293293
}

0 commit comments

Comments
 (0)