patch 8.2.3670: error checks repeated several times

Problem:    Error checks repeated several times.
Solution:   Move the checks to functions. (closes #9213)
diff --git a/src/version.c b/src/version.c
index da5871e..1918890 100644
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3670,
+/**/
     3669,
 /**/
     3668,