Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Linting errors in snippets #1233

Merged
merged 1 commit into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/app/services/actions/snippet-action-creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ import { parseSampleUrl } from '../../utils/sample-url-generation';
import {
GET_SNIPPET_ERROR,
GET_SNIPPET_PENDING,
GET_SNIPPET_SUCCESS,
GET_SNIPPET_SUCCESS
} from '../redux-constants';

export function getSnippetSuccess(response: string): IAction {
return {
type: GET_SNIPPET_SUCCESS,
response,
response
};
}

export function getSnippetError(response: object): IAction {
return {
type: GET_SNIPPET_ERROR,
response,
response
};
}

export function getSnippetPending(): any {
return {
type: GET_SNIPPET_PENDING,
type: GET_SNIPPET_PENDING
};
}

Expand All @@ -50,7 +50,7 @@ export function getSnippet(language: string): Function {

const method = 'POST';
const headers = {
'Content-Type': 'application/http',
'Content-Type': 'application/http'
};
// eslint-disable-next-line max-len
const body = `${sampleQuery.selectedVerb} /${queryVersion}/${
Expand Down
2 changes: 1 addition & 1 deletion src/app/views/query-response/snippets/Snippets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function GetSnippets() {
'JavaScript',
'Java',
'Objective-C',
'Go',
'Go'
];

return <Pivot>{renderSnippets(supportedLanguages)}</Pivot>;
Expand Down