Browse Source

Fix minor errors

Marrub 2 years ago
parent
commit
5cb9129185
3 changed files with 3 additions and 3 deletions
  1. 1
    1
      .yardopts
  2. 1
    1
      source/module.rb
  3. 1
    1
      source/server.rb

+ 1
- 1
.yardopts View File

@@ -1 +1 @@
1
---protected source/*.rb servers/*.rb - README
1
+--protected source/*.rb source/servers/*.rb

+ 1
- 1
source/module.rb View File

@@ -123,7 +123,7 @@ module Vrobot4::Module
123 123
             end
124 124
          else
125 125
             if opt.length
126
-               check_arg argv, 0, opt[0] if argv.length
126
+               check_arg argv, 0, opt[0] unless argv.empty?
127 127
             else
128 128
                check_arg argv, 0, req[0]
129 129
             end

+ 1
- 1
source/server.rb View File

@@ -128,7 +128,7 @@ module Vrobot4::Server
128 128
       def initialize info
129 129
          @info = info
130 130
          @modules = [Mod_Base.new(nil)]
131
-         load_permissions info["permissions"] if info.key? "permissions"
131
+         load_permissions info["permissions"]
132 132
       end
133 133
 
134 134
       # Loads and initializes a module into the load list.

Loading…
Cancel
Save