Skip to content

Commit

Permalink
fix: Drop deprecated cockpit.resolve()
Browse files Browse the repository at this point in the history
cockpit.{resolve,reject} have been deprecated for years. Use the
standard JS promise API.
  • Loading branch information
martinpitt committed Nov 25, 2024
1 parent 3b7d35c commit ebacb56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/insights.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function unregister() {
return cockpit.spawn([ "insights-client", "--unregister" ], { superuser: true, err: "out" })
.catch(catch_error);
} else {
return cockpit.resolve();
return Promise.resolve();
}
}

Expand Down

0 comments on commit ebacb56

Please sign in to comment.