Skip to content

Commit

Permalink
fix: fix unsupported platform methods (#4)
Browse files Browse the repository at this point in the history
* fix: add Stop() method to unsupported

* use value
  • Loading branch information
dlsrb6342 authored Oct 25, 2022
1 parent 2ca65e8 commit a18096b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autopprof_unsupported.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
package autopprof

// Start does not do anything on unsupported platforms.
func Start(opt *Option) error {
func Start(opt Option) error {
return ErrUnsupportedPlatform
}

// Stop does not do anything on unsupported platforms.
func Stop() {}

0 comments on commit a18096b

Please sign in to comment.