Skip to content

Commit

Permalink
chore: fixed nimalyzer error
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 8ef86304bc5dff3f423b7bb0afcf3bcd8ad7a386405bcb3aa0ac451b85e979bd
  • Loading branch information
thindil committed Oct 29, 2024
1 parent 63c63e5 commit 7fd93f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands.nim
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@
# Standard library imports
import std/[os, paths, tables, unicode]
# External modules imports
import contracts
import contracts, nimalyzer
import norm/sqlite
# Internal imports
import aliases, constants, commandslist, output, plugins, types, variables

{.push ruleOff: "objects".}
using
db: DbConn # Connection to the shell's database
aliases: ref AliasesList # The list of aliases available in the selected directory
newDirectory: Path # The directory to which the current directory will be changed
{.pop ruleOn: "objects".}

proc changeDirectory(newDirectory; aliases; db): ResultCode {.sideEffect,
raises: [], tags: [ReadEnvEffect, ReadIOEffect, ReadDbEffect, WriteIOEffect,
Expand Down

0 comments on commit 7fd93f0

Please sign in to comment.