Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
robert3005 committed Nov 1, 2024
1 parent 4864fa6 commit e979d26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/import/instruments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ export function importFromInstrumentsDeepCopy(contents: TextFileContent): Profil

const stack: FrameInfoWithWeight[] = []
let cumulativeValue: number = 0
let firstRowShift: number = rows[0]['Symbol Names']
let leadingFirstRowSpaces: number = rows[0]['Symbol Names']
? rows[0]['Symbol Names'].lastIndexOf(' ') + 1
: 0

for (let row of rows) {
const symbolName = row['Symbol Name'] || row['Symbol Names']?.slice(firstRowShift)
const symbolName = row['Symbol Name'] || row['Symbol Names']?.slice(leadingFirstRowSpaces)
if (!symbolName) continue
const trimmedSymbolName = symbolName.trim()
let stackDepth = symbolName.length - trimmedSymbolName.length
Expand Down

0 comments on commit e979d26

Please sign in to comment.