Commit b1544b69 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Don't generate @since tags when versions data not available.

parent 8de7100b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -9,8 +9,10 @@ module JsDuck

    # Loads in exported docs and generates @since tags based on that data.
    def import(versions, relations)
      if versions.length > 0
        generate_since_tags(read_all(versions), relations)
      end
    end

    # Reads in data for all versions, returning array of
    # version/class-data pairs.  We don't use a hash to preserve the