Skip to content

Commit

Permalink
把erx改为err以保持简洁
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyile committed Dec 30, 2024
1 parent 6170ee3 commit 4d95a07
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
path-to-profile: /tmp/coverage/combined.txt
flag-name: Go-${{ matrix.go }}
parallel: true
if: ${{ github.event.repository.fork == false }} # 仅在非 fork 时上传覆盖率

check-coverage:
name: Check coverage
Expand All @@ -51,14 +52,15 @@ jobs:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true
if: ${{ github.event.repository.fork == false }} # 仅在非 fork 时检查覆盖率

# 发布 Release
release:
name: Release a new version
needs: [ lint, test ]
runs-on: ubuntu-latest
# 仅在推送标签时执行
if: ${{ success() && startsWith(github.ref, 'refs/tags/v') }}
# 仅在推送标签时执行 - && - 仅在非 fork 时执行发布
if: ${{ github.event.repository.fork == false && success() && startsWith(github.ref, 'refs/tags/v') }}
steps:
# 1. 检出代码
- name: Checkout code
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,8 @@ If you find this package helpful, give it a star on GitHub!

Give me stars. Thank you!!!

## See stars
[![see stars](https://starchart.cc/yyle88/gobtcsign.svg?variant=adaptive)](https://starchart.cc/yyle88/gobtcsign)
---

## Starring

[![starring](https://starchart.cc/yyle88/gobtcsign.svg?variant=adaptive)](https://starchart.cc/yyle88/gobtcsign)
12 changes: 6 additions & 6 deletions dogecoin/dogecoin.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import (
)

func init() {
if erx := chaincfg.Register(&MainNetParams); erx != nil {
panic(erx)
if err := chaincfg.Register(&MainNetParams); err != nil {
panic(err)
}
if erx := chaincfg.Register(&TestNetParams); erx != nil {
panic(erx)
if err := chaincfg.Register(&TestNetParams); err != nil {
panic(err)
}
if erx := chaincfg.Register(&RegressionNetParams); erx != nil {
panic(erx)
if err := chaincfg.Register(&RegressionNetParams); err != nil {
panic(err)
}
}

Expand Down
6 changes: 3 additions & 3 deletions internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package utils

import "fmt"

func MustDone(erx error) {
if erx != nil {
panic(erx)
func MustDone(err error) {
if err != nil {
panic(err)
}
}

Expand Down

0 comments on commit 4d95a07

Please sign in to comment.