]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Update feature_macros.md (#2387)
authorMitchell van Manen <ma.van.manen@live.nl>
Thu, 1 Mar 2018 16:05:15 +0000 (17:05 +0100)
committerskullydazed <skullydazed@users.noreply.github.com>
Thu, 1 Mar 2018 16:05:15 +0000 (08:05 -0800)
break statements are never reached due to the return statement, so unnecessary

docs/feature_macros.md

index dff692bd8f0cc28ee81d124ac241500668f78050..e77d7afea30dd9d2e0af2ed1278738eb87f7367f 100644 (file)
@@ -22,7 +22,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
                switch(keycode) {
                        case MY_CUSTOM_MACRO:
                                SEND_STRING("QMK is the best thing ever!"); // this is our macro!
-                               return false; break;
+                               return false;
                }
        }
        return true;
@@ -56,10 +56,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
                switch(keycode) {
                        case MY_CUSTOM_MACRO:
                                SEND_STRING("QMK is the best thing ever!");
-                               return false; break;
+                               return false;
                        case MY_OTHER_MACRO:
                                SEND_STRING(SS_LCTRL("ac")); // selects all and copies
-                               return false; break;
+                               return false;
                }
        }
        return true;