Skip to content

Commit

Permalink
removed error type
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Yazykov committed Jul 7, 2023
1 parent 46480f7 commit 4625ac7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,6 @@ client.token.on('change', () => {
- INVALID_JSON_RESPONSE. Некорректный JSON ответ
- API_RESPONSE_ERROR. Ошибка в ответе по API
- NO_TOKEN_AND_CODE. В настройках отсуствует код и не установлен токен
- CONNECTION_ERROR. Неудачное соединение
- NO_ENVIRONMENT_OPTIONS. Отсутствуют настройки
- PATH_IS_EMPTY. Попытка установить client.environment.set без переданного первого пути
- INVALID_PATH. Неверный
- NO_AUTH_OPTIONS. Отсутствуют настройки config.auth
Expand Down
3 changes: 0 additions & 3 deletions src/common/Environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ export class Environment implements IEnvironment {
}

set(path: string, value: JSONValue) {
if (!this.options) {
throw new Error('NO_ENVIRONMENT_OPTIONS');
}
let handler: any = this.options;
const parts = path.split('.');
if (parts.length === 0) {
Expand Down

0 comments on commit 4625ac7

Please sign in to comment.