style: fix lint formatting
This commit is contained in:
@@ -23,7 +23,7 @@ struct SkillStatus: Codable, Identifiable {
|
|||||||
let configChecks: [SkillStatusConfigCheck]
|
let configChecks: [SkillStatusConfigCheck]
|
||||||
let install: [SkillInstallOption]
|
let install: [SkillInstallOption]
|
||||||
|
|
||||||
var id: String { name }
|
var id: String { self.name }
|
||||||
}
|
}
|
||||||
|
|
||||||
struct SkillRequirements: Codable {
|
struct SkillRequirements: Codable {
|
||||||
@@ -43,7 +43,7 @@ struct SkillStatusConfigCheck: Codable, Identifiable {
|
|||||||
let value: AnyCodable?
|
let value: AnyCodable?
|
||||||
let satisfied: Bool
|
let satisfied: Bool
|
||||||
|
|
||||||
var id: String { path }
|
var id: String { self.path }
|
||||||
}
|
}
|
||||||
|
|
||||||
struct SkillInstallOption: Codable, Identifiable {
|
struct SkillInstallOption: Codable, Identifiable {
|
||||||
|
|||||||
@@ -26,7 +26,9 @@ export async function getTailnetHostname(exec: typeof runExec = runExec) {
|
|||||||
? (parsed.Self as Record<string, unknown>)
|
? (parsed.Self as Record<string, unknown>)
|
||||||
: undefined;
|
: undefined;
|
||||||
const dns =
|
const dns =
|
||||||
typeof self?.DNSName === "string" ? (self.DNSName as string) : undefined;
|
typeof self?.DNSName === "string"
|
||||||
|
? (self.DNSName as string)
|
||||||
|
: undefined;
|
||||||
const ips = Array.isArray(self?.TailscaleIPs)
|
const ips = Array.isArray(self?.TailscaleIPs)
|
||||||
? (self.TailscaleIPs as string[])
|
? (self.TailscaleIPs as string[])
|
||||||
: [];
|
: [];
|
||||||
|
|||||||
Reference in New Issue
Block a user