assets/_javascripts/heute.js
Function getPState
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getPState = () => {
/* eslint-disable complexity */
$.get(`../api/vm/${uuid}/pstate`).done((rsvp) => {
if (rsvp.Status === 'Success') {
$('#pstate').html(rsvp.Value.power_state);