Skip to content

Commit 50c4891

Browse files
committed
Simplified compiler directives for action.
1 parent f261160 commit 50c4891

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/Umbraco.Cms.Integrations.Automation.Zapier/Controllers/SubscriptionController.cs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,7 @@ public SubscriptionController(ZapConfigService zapConfigService, IUserValidation
4343
}
4444

4545
[HttpPost]
46-
#if NETCOREAPP
47-
public bool UpdatePreferences([FromBody] SubscriptionDto dto)
48-
#else
4946
public bool UpdatePreferences([FromBody] SubscriptionDto dto)
50-
#endif
5147
{
5248
string username = string.Empty;
5349
string password = string.Empty;
@@ -77,18 +73,9 @@ public bool UpdatePreferences([FromBody] SubscriptionDto dto)
7773

7874
var result = _zapConfigService.UpdatePreferences(dto.HookUrl, dto.Enable);
7975

80-
if (!string.IsNullOrEmpty(result))
81-
#if NETCOREAPP
82-
return false;
83-
#else
84-
return false;
85-
#endif
76+
if (!string.IsNullOrEmpty(result)) return false;
8677

87-
#if NETCOREAPP
8878
return true;
89-
#else
90-
return true;
91-
#endif
9279
}
9380
}
9481
}

0 commit comments

Comments
 (0)