| 2920 | } |
| 2921 | |
| 2922 | std::string Git::poll(int64_t jobId) { |
| 2923 | #ifdef DORA_NO_WA |
| 2924 | DORA_UNUSED_PARAM(jobId); |
| 2925 | return "{\"state\":\"error\",\"error\":\"Wa Git not supported\"}"s; |
| 2926 | #else // !DORA_NO_WA |
| 2927 | auto result = WaGitPoll(jobId); |
| 2928 | std::string data = result ? std::string(result) : "{\"state\":\"error\",\"error\":\"Wa Git not available\"}"s; |
| 2929 | if (result) { |
| 2930 | WaFreeCString(result); |
| 2931 | } |
| 2932 | return data; |
| 2933 | #endif // !DORA_NO_WA |
| 2934 | } |
| 2935 | |
| 2936 | bool Git::cancel(int64_t jobId) { |
| 2937 | #ifdef DORA_NO_WA |
nothing calls this directly
no test coverage detected