Simplify error handling codes

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2023-04-11 13:08:06 +08:00
parent 8f1aa59e67
commit 497b3adba2
28 changed files with 195 additions and 548 deletions
+6
View File
@@ -11,3 +11,9 @@ func init() {
// go SyncNotesList()
// GenDownloadDb()
}
func CheckErr(err error) {
if err != nil {
panic(err)
}
}