Skip to content

Commit 3f4c534

Browse files
committed
Refactored: Added consistent spacing to if-else
1 parent 84e2327 commit 3f4c534

File tree

4 files changed

+70
-70
lines changed

4 files changed

+70
-70
lines changed

components/clipCreatorGUI.ahk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ showClipCreatorGUI(createAsQuickClip = false){
1010
Gui Add, Edit, hWndhEdtValue x8 y24 w224 h108 vEditContent -Wrap
1111
Gui Add, Button, hWndhBtnOk x8 y144 w80 h24 gOkClick, OK
1212
Gui Add, Button, hWndhBtnCancel x96 y144 w80 h24 gCancelClick, Cancel
13-
if(createAsQuickClip){
13+
if (createAsQuickClip) {
1414
Gui Font, s10
1515
Gui Add, DropDownList, hWndhDDLItems x200 y144 w32 vQuickClipSlot, 0||1|2|3|4|5|6|7|8|9
1616
Gui Font
@@ -20,7 +20,7 @@ showClipCreatorGUI(createAsQuickClip = false){
2020
Return
2121

2222
GuiSize:
23-
If (A_EventInfo == 1) {
23+
if (A_EventInfo == 1) {
2424
Return
2525
}
2626

@@ -29,7 +29,7 @@ showClipCreatorGUI(createAsQuickClip = false){
2929
AutoXYWH("y", hBtnOk)
3030
AutoXYWH("y", hBtnCancel)
3131

32-
if(createAsQuickClip)
32+
if (createAsQuickClip)
3333
AutoXYWH("xy", hDDLItems)
3434
Return
3535

@@ -40,7 +40,7 @@ showClipCreatorGUI(createAsQuickClip = false){
4040
if QuickClipSlot is Integer
4141
{
4242
setQuickClip(QuickClipSlot, EditContent)
43-
} else{
43+
} else {
4444
Clipboard := EditContent
4545
}
4646

components/hotkeys.ahk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Alt Up::
77
LWin Up::
88
setStateReady:
9-
if(GDIP_IsDrawing){
9+
if (GDIP_IsDrawing) {
1010
GDIP_Clean()
1111
GDIP_Update()
1212
GDIP_EndDraw()
@@ -27,7 +27,7 @@
2727
isLogging := !isLogging
2828
clipMode := [clipModePaused, clipModeNone][isLogging + 1]
2929

30-
if(isLogging){
30+
if (isLogging) {
3131
Clipboard := ""
3232
changeClip("", true, false)
3333
}

0 commit comments

Comments
 (0)