aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-04-26 19:36:46 +0200
committerMichael Muré <batolettre@gmail.com>2022-04-26 19:36:46 +0200
commit8ee333582ff82d0df971309e94946f2f6e69475b (patch)
tree0ba2904b8e27f5d17b247be2ee70dc6ba7157d59
parenta00f1a98972239c4a57cc126e9b41e6c4c53b023 (diff)
downloadgit-bug-8ee333582ff82d0df971309e94946f2f6e69475b.tar.gz
a few fixes
-rw-r--r--.github/workflows/go.yml2
-rw-r--r--entity/dag/operation_pack.go2
-rw-r--r--util/text/validate.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 21fff7dc..27353e90 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -51,5 +51,5 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- - name: Check Code Formation
+ - name: Check Code Formatting
run: find . -name "*.go" | while read line; do [ -z "$(gofmt -d "$line" | head)" ] || exit 1; done
diff --git a/entity/dag/operation_pack.go b/entity/dag/operation_pack.go
index 8ca2ff56..9b42f9bf 100644
--- a/entity/dag/operation_pack.go
+++ b/entity/dag/operation_pack.go
@@ -359,5 +359,5 @@ func (pk PGPKeyring) DecryptionKeys() []openpgp.Key {
// }
// }
// return result
- return nil
+ panic("not implemented")
}
diff --git a/util/text/validate.go b/util/text/validate.go
index 4c3f7065..f25a56b4 100644
--- a/util/text/validate.go
+++ b/util/text/validate.go
@@ -33,7 +33,7 @@ func Safe(s string) bool {
return true
}
-// Safe will tell if a character in the string is considered unsafe
+// SafeOneLine will tell if a character in the string is considered unsafe
// Currently trigger on all unicode control character
func SafeOneLine(s string) bool {
for _, r := range s {